Java-the generation programming language
Basic of java
Java is an programming language developed by sun microsystems in early 1990s. the language is very similar in syntax to C and C++. Java was started as a project called "oak". The "oak" is the name of plant. But after some time it was named as a java. It was developed by James Gostling. He is drinking the coffee when he was thinking to give new name to this language. Then he decided java because the name of the bean used in there coffee is java. The first public implementation was java 1.0 in 1995. Its one of the main feature is WORA (write once run anywhere) mean once you write you can run it anywhere.
Java quickly became a popular programming language. Newer versions of the java programming language had multiple configurations built for different platforms. For example, J2EE for enterprise applications and J2ME for mobile applications. Java programming is best learned by those who are familiar with object oriented programming methodology.
The program is written in cmd or notepad. The program is saved with ".java" extension. In java the program is both complied and interpreted. The program is complied as "javac programname.java" and run as "java programname". The program name is same as class name in which main function is present.
public static void main(String x)
The program is saved as ABC.java because main function is present in ABC class.
The first letter of "String" and " System" is capital because this is the class and the first letter of class is always capital.
Some conventions of java are:
1). Class name:- the first letter of every word of class name must be in Caps.
For example- FirstClass.java
2). Variable + functions:- first letter of every word except first word must be in caps.
For example- equalsIgnoreCase(), equals()
3). Constants:- all letter in caps.