Versions of Java Are:-: The Basic Principle of Java Is WORA (Write Once Run Anywhere)
Versions of Java Are:-: The Basic Principle of Java Is WORA (Write Once Run Anywhere)
Java is basically an coffee breed ,it was basically developed by sun microsystems in 1951. Vinod
khosla was the founder of java and he left it after two years.java was developed by james gosling.
Compiler:-it makes a file and stores the whole translation into it and then hand over it to
the O.S.
(JVM)Interpreter:-it converts the code line by line and handle it over to the O.S.it is
platform dependent
Installation of JAVA:-
It consist of 2 folders i.e, JDK & JRE in which we have to specify the installation path
There are 4 access specifiers in java language i.e.
1.)public
2.)private
3.)protected
4.)default
HelloWorld- is a camel case in which we have to write the names without
space and Hello World is a class.
String[] args- is an array in which the arguments are stored and these are known as
strings
System.out.println(“HelloWorld”);
System is a class as it is starting from the capital letter as it is followed by a dot which means
it is calling a static function.
Out is reffered as a reference variable which is pointing towards a object but we consider it
here as a object which is followed by a dot that means the out is also a class of any function
and we are calling the print screen function, i.e. println
The words written within the parenthesis is the output which we are going to see on the
screen.
Keywords:-
There are a few keywords that are used in java language i.e,
What is a Data Type?