⭐Java Introduction/History


Home SQL Manual Testing Java Selenium

⭐Language:- Language is a medium to communicate between two entities.


⭐Programming Language:-It is a medium to communicate between human and a machine.


How language is built/works:-


How programming language is built/works:-


⭐Java Types

1.Class.
2.Enum.
3.Interface.
4.Annotation.


⭐Class

Class is a blueprint or template to create object.

class Sample //Class Declaration
  {
    public static void main(String[] args)//main method declaration Or method signature.
     {
      System.out.println("Bhumik Patel")
     }
  }

The Above is template for class.


1.Command for Compilation.

Syntax:- javac file_name.java
Ex:- javac Sample.java


11.Command for Interpretation.

Syntax:- java file_java
Ex:-java Sample