Java Programming Language

Java is one of the most popular and widely used programming language.

  • Java has been one of the most popular programming language for many years.
  • Java is Object Oriented. However it is not considered as pure object oriented as it provides support for primitive data types (like int, char, etc)
  • The Java codes are first compiled into byte code (machine independent code). Then the byte code is run on Java Virtual Machine (JVM) regardless of the underlying architecture.
  • Java syntax is similar to C/C++. But Java does not provide low level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects.
  • Java is used in all kind of applications like Mobile Applications (Android is Java based), desktop applications, web applications, client server applications, enterprise applications and many more.
  • When compared with C++, Java codes are generally more maintainable because Java does not allow many things which may lead bad/inefficient programming if used incorrectly. For example, non-primitives are always references in Java. So we cannot pass large objects (like we can do in C++) to functions, we always pass references in Java. One more example, since there are no pointers, bad memory access is also not possible.
  • When compared with Python, Java kind of fits between C++ and Python. The programs written in Java typically run faster than corresponding Python programs and slower than C++. Like C++, Java does static type checking, but Python does not.

Simple Hello World Program :

// A Java program to print "Hello World" 
public class GFG { 
    public static void main(String args[]) 
        System.out.println("Hello World"); 

Output :

Hello World

Overview, Basics,   OOP concepts, Inheritance   Operators,   Strings,   Input and Output, Arrays , Arrays Class,  Important Keywords in Java ,Java vs C++,   Methods in Java,   Constructors,   Exception Handling, Interfaces and Abstract Classes, Java Packages, Multithreading,   Garbage CollectionWrapper Classes, Reflection in Java,   File Handling,   Collection in Java, Collection Interview FAQ’s  ,Collections Class (Contains utility functions on Collections),   Useful and/or Advanced Features,   Image Processing,  Networking in Java, Interview Questions, Misc, Multiple Choice Questions, Java 8 Stream Methods



OOP concepts



Input and Output

Strings in Java

Arrays in Java

Stream in Java

Important Keywords

C++ vs Java

Methods in Java


Exception Handling

Interfaces and Abstract Classes

Apache in Java

Java Packages

Collection in Java

Collection Interview FAQ’s




Garbage Collection

Wrapper Classes

Reflection in Java

File Handling

Java Tuple

Useful and/or Advanced Features 

Image Processing 

Networking in Java

Java.Time Package

Java.Lang Package

Java.Math Package

Java Recent Articles!
Java Output & Multiple Choice Questions

My Personal Notes arrow_drop_up

Writing code in comment? Please use, generate link and share the link here.