JAVA LAB MANUAL BIET
Introduction to JAVA
Java Programming Language:Java
is a very popular and widely used programming language and it was not be anexaggeration to say it is the most widely used programming language in industry now.The reason for its wide popularity was probably the well thought of goals of theprogramming language. Among other attractive features, the following stand out inensuring it gets wide acceptability.1.
Ease of use2.
Very strong API4.
Focus on removing hard to use and error-prone constructs5.
Open Source encouraging collaborative development.7.
Security (Sandbox)When people refer to the term JAVA, they are actually referring to any one or all threeof the following.The JAVA Programming LanguageThe Java Virtual MachineThe JAVA Application Programming InterfaceAll three together along with the numerous tools that provide for a strong programmingenvironment, making programming easy and encouraging rapid application developmenthas made Java one of the most popular programming languages.
The JAVA Virtual Machine:
Contrary to other popular languages, JAVA follows a half-compiled, half-interpretedapproach to achieve the famed platform independence. Java inventors also defined aplatform independent java machine language called Byte-Code into which java Compilercompiles all Java Programs. This byte code is the machine language of the Java VirtualMachine and is platform independent. Java Virtual Machine is a software interpreterwhich interprets byte code (.class files) and executes them on the target machine onwhich the byte code in running. Java inventors provided reference implementations of Java Virtual machine on some of the most popular machine architectures and