Check out example codes for "java". It will help you in understanding the concepts better.

Code Example 1

public class Example {
  public static void main(String[] args) {
  	System.out.println("Hello, world!"); 
  }
}

Code Example 2

An incredible language that receives far more hate than it deserves
because of it's poor beginnings.
	Everyone remembers the slow java applets but often fail to understand
Java's many positives including:
 - compatability with many different systems
 - Just-In-Time compilation making it almost as fast as a native language
 - the wide range of high-quality and open source libraries developed over
   many years

	Sure, it may not look as sexy as Python or NodeJS, but when you're
debugging the call stack 50 functions deep, you'll be glad you picked Java

Code Example 3

Java FTW!!! Minecraft was made in java, but in other languages??? No!

Code Example 4

Java is a computer language developed by Sun Microsystems. It was released in 1995 as a core part of Sun's Java platform. Although its syntax is very similar to the C, C Plus plus, it is based on a simpler object model

Code Example 5

Java is a set of computer software and specifications developed by James Gosling at Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment

Code Example 6

An object oriented language that is supported by any machine that oracle
decides to support developed at Sun Microsystems. 



side note:
garabage collector is ass

Code Example 7

Java is powering the innovation behind our digital world. Harness this potential with Java resources for student coders, hobbyists, developers, and IT leaders.

Code Example 8

class Anupam
{
  public static void main(String...args)
  {
    System.out.println("HI this is Anupam Guin from Kolkata,INDIA");
  }
}

Code Example 9

time for making minecraft pluggins

Code Example 10

Java is a set of computer software and specifications developed by James
Gosling at Sun Microsystems, which was later acquired by the Oracle
Corporation, that provides a system for developing application software and
deploying it in a cross-platform computing environment.

Learn ReactJs, React Native from akashmittal.com