Hello Guys !!!

Starting with JAVA  …


As we all know about C & C++, ” JAVA ” is one of object based programming language & in todays IT – Industry in needs Jobs are much on such technologies …
so do co – operate & have fun with likes to My – Blogs !
HISTORY OF JAVA
Java Language was developed by group of persons included Patrick Naughton , Herbert Shildt, james , Edrick etc; In 1992 older name of java was ” Oak ” that was a failure language. for not giving all the features required for oobject oriented Lang ( OOP ) .
In 1995, Sun Microsystems owned the complete group of java & launched the second release of java & therefore its Named as [ JAVA – II ].

Earlier the Languages were : –
A – Algol ALGOL (short for ALGOrithmic Language) is a family of imperative computer programming languages originally developed in the mid-1950s which greatly influenced many other languages and was the standard method for algorithm description used by the ACM, in textbooks, and academic works for the next 30 years and more.

B –
Ken Thompson wrote B basing it mainly on the BCPL language he had used in the Multics project. B was essentially the BCPL system stripped of any component that Thompson felt he could do without, in order to make it fit within the memory capacity of the minicomputers of the time.

C – This was the programming language by Dennis Ritchie the mastermind of all programming language. its replacement for lang – B & also made revolution in Programming world !

C++ –
Thenafter the concept came of OOPS ( Object Oriented Programming Language ) which was totally depended on Objects & it shows many concepts which are very usefull than languages before …

JAVA – Now , JAVA I personally Love this Language,  Let us see the magic of It ….

There are two steps to Run the code : –
* Compilation
* Interpretation

In the 1st state of compilation compiler accepts the java file (code) from the user & generates –> class file from given file then if java file contains any errors java compiler will show respective error message on output screen otherwise it will generate –> classfile !
Error message contains following information :
* File Name
* Line Number
* Error Statements
* Suggestion
* Java Statements with control mark (^)
In my view of last 4- yrs i found the best compiler which shows error in such a good way which is easy to diagnosis the error ! Genrated class file is also known as Byte Code / Binary Code / Magic Code file.

In 2nd step -> Java Interpreter is used to generate output from givenclass file , java interpreter is commonly known as (” java “) that excepts classfile from user &^ generates output as per instructions given in class file.

Quo – 1 ) Why Java is known as Platform Independant Language ?
Ans : –
Programs developed in java can be run in any Operating Systems ( o/s ) bcoz tools & components required to run any java program are availabel in java interpreter i.e. java program is completely dependent on tools & components provided not on any O/S so it is said Platform Independant .

Quo – 2 ) Why class file is known as Magic code file ?
Ans :-  As You know now , there are two steps to run java program : –
complier & Interpretation, java compiler ( javac ) is used to compile any java program & after successful compilation it genrates file named class file / byte code / magic code / binary code. since, the genrated code class file is Encrypted file therefore its known as byte code or binary code file.
here the size generated classfile is always smaller than executable file of c, c++, vb, & vc++ lang’s, therfore its portable to transfer class file from 1 – machine to another machine (PC) through a network or internet & hance its called Magic Code File.

First Program in JAVA

class P1
{
public static void main(String args[])
{
System.out.println(” Hello JAVA “);
}
}

Steps to run java program : –

c://javac p1.java ( Enter )
c://java p1 ( Enter )

Output : –
Hello JAVA

Notes : –
Here in above code we see that
* The class name first char ‘P1’ is Capital
* String args[] ‘S’ is Capital
* System .out.println ‘S’ is also capital

we will check it in next Blog , thats all for todays , till then stay connected …

Connect & Comment If any Problem’s may ask for Solutions

Leave a Reply

Your email address will not be published. Required fields are marked *