You are on page 1of 5

K. K.

Wagh Polytechnic, Nashik-3

Chapter 1

Basic Syntactical Constructs in


Java

CO401.1 To understand use of programming language constructs

Mrs. A. R. Sonawane CM Dept.


History of Java:
Difference between Java and C++

• Global Variables are not present


• Use of goto is not observed
• Pointers are not included
• Memory Allocation functions are not present
• Unsafe Type Casting is not supported
• Preprocessor Directives are not present
• Separate Header Files are not included
Java Features
• Compiled and Interpreted
• Platform Independent and Portable
• Object Oriented
• Robust and Secure
• Dynamic
• Distributed
• Small, Simple and Familiar
• Multithreaded
Process of Compilation and Interpretation

Java Source Code Java Compiler Bytecode


.java javac .class
 

Bytecode Java Interpreter Machine Code


.class java .exe
 

You might also like