In this Blog, we learn what java is and how to use Java in programming part, what the different versions of Java are, how to write a simple program in Java and what is an array structure in Java and also how to write an algorithm in Java.
So, let’s get started.
Java is a general purpose computer programming language and designed to produce programs that will run on any computer system.
James Gosling designed Java 21 years ago in May 23, 1995.
And it is developed by Sun Microsystems.
Java is very simple compared to other programming languages and easy to implement.
Java doesn’t have complex features of C++ and C resulting in a simpler language means not using pointers, unions, enumerations.
Java is Object-oriented, a single-root, single-inheritance, multithreaded.
Using Java RMI (remote method invocation) you can access objects on other machines almost as if they were local.
Programs written in the Java language are platform independent.
Here we will know the different important versions of Java.
JESE Version 1.4 (February 6, 2002). The code was named Merlin and was first released under JCP.
J2SE Version 5.0 (September 30, 2004). The code was named Tiger.
Java SE 6 (December 11, 2006). The code was named Mustang
Java SE 7 (July 28, 2011). The code was named Dolphin.
Java SE 8 (March 18, 2014). The code name culture is dropped with Java 8 and so no official code name going forward from Java 8.
Here, in this image you can see a sample Java Program.
Now, we will discuss what an array is?
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. Its length is fixed after the creation.
In first element, an array always starts with zero and it contains similar data types.
Finally, we will look at the sample algorithm of Java
Algorithm is nothing but the blue print of a program.
Algorithms are helpful in understanding a complicated process.
Every algorithm begins with a start and ends with a stop.