Java is the most influential programming language.The language was started in 1990, when the American company not only decided to revolutionize the computer world but also decided to gather all the best engineers together to design and develop for making a best and notable player in the internet world.
The engineer was Arthur Gosling, a Canadian computer scientist who was recognized as the father of the JAVA programming language.The language takes five year for designing and programming.In 1996, java 1.0 was released finally for linux,mac and windows.
The first version of java was released by sun microsystems with the help of a small team named as green team that worked on prototype languages named as oak.
The green team released an animal touch screen user interface with a cartoon character named duke, duke was one of the official java technology mascots over the internet because that was the fastest way to create widespread adoptions
Java 1.0 was named as Oak, when it came into existence moreover there are similarities with c++ which was designed for the set top- boxes.The additional advantages which was not part of c++ :
Security: In java , there is no danger of reading bogus data when data goes over sized.
Portability: java virtual machines makes possible a primary motto which is write once, run it everywhere.
Automatic memory management:In java, the user does not think about the allocation space in programming because there are operators which are handled automatically by garbage collectors.Furthermore there is no need to use pointers.
Simplicity: In java there are no specific pointers, templates, unions and structures.java is that kind of programming in which anything can be declared as a class.
Why is java portable?
Java is one of the higher level programming languages that allows developers to write independently of a particular computer type. Higher level languages are easier to read ,write and understand whereas compiler and interpreted machines are used to convert codes into machine language.
Java virtual machine, provides platform-independent ambience to convert java code into machine language for program execution.
Oracle takes over:
In 2011, oracle introduced the new version of java named as java SE 7.
The following are indispensable features in java7:
- Invokedynamic bytecode provides support to JVM to make dynamic language.
- Changes that make language more feasible under project coin.
- Strings in switch.
- Binary integer literals.
- Concurrency improvement.
Introduction to new version: In java 9, java shell tools are not only used for interactive tools but also for prototyping tools to learn programming language which means java files are executed in the console without saving after that compiled into bytecodes and then interpreted by the underlying OS sequence run to execute.
Jshell is a standard component of the JDK that is in the bin directory located in JDK installation directory. Jshell is a real- eval-print loop, which evaluates declarations, statements and expressions as they are added and then it displays the result.
In java, sequences of characters named as variables are assigned by values. To do this , enter int i=42
jshell> int i = 42
i ==> 42
| created variable i : int
As a result, we can see that log message is clear and tells us that the command is executed
Let’s declare another variable Int j=14
jshell> int j =14
| created variable j : int
We can further use these variable for finding third variable
jshell> int i + j
| created scratch variable #3 : int
To encapsulate, we added two variables but does not store in result third , thus jshell makes scratch variable for result storage and print result .