Java is “Object Oriented Programming Language” unlike ‘C language’ which is a structured oriented one.
Java Language starts with packages. Within Packages are classes, within classes are methods, constants and variables. In java, source code (.java files) is compiled, it gets transated into byte codes and then placed into ‘.class’.
The byte code is platform-independent and can be run on any machine that has a Java Virtual Machine (JVM). The JVM interprets and executes the byte code, allowing Java programs to be portable across different operating systems.
OOPS concepts: There are 4 principles of object oriented programming.
They are: Abstraction, Encapsulation, Inheritance and Polymorphism.
Features of Java: There are some powerful features of Java.
Architecture of Java: After a Java programs is written, compiler reads the statements in the programme and translates into machine format called byte code. And then the compiled Java code which is the resulting byte code will be executed at runtime. Java programs are written and executed in two ways:
Java Source Code: A Java is a collection of one or more collection of java classes. A java source file can contain many classes which can be executed at any time within a class.
public class ( HelloWorld {
public static void main String args[] {
system.out.println(“HelloWorld”) ;
} // End of main
} // End of HelloWorld Class
UAE:
Al Sharq Street, Al Gulaya, Sharjah, United Arab Emirates
+971 55 537 8122
Email: info@etcsfzc.com