JAVA basics
You are acquainted with the fact that Java is OOP language.(Click here to know about OOP ) . Java was developed by James Gosling and was named as Oak after an oak tree that stood outside Gosling's office.
Sun Micro-systems published the first version of java named as Java 1.1.
From the table above it is clear that the names and version numbers have changed multiple times.
- Version 1.0 and 1.1 are named as JDK(Java Development Kit).
- Version 1.2, 1.3, 1.4, 5.0 are named as J2SE(Java 2 Standard Edition)
- Version 6,7,8 are named as Java SE(Java Standard edition).
FEATURES OF JAVA
Java has many features that make it a powerful and popular language.Some of these features are:-
- Simple- Java is simple because most of it is similar to C++. Some of the unnecessary and rarely used features like goto,operator overloading,pointer has been removed in Java.
- Write once run anywhere(WORA)- The Java program needs to be written once and can run on different platforms without making changes in the Java program.
- Security- Java is a very secured language. It has no concept of pointers as in C programming. Thus there is no way of accessing memory directly. There is also an Automatic Garbage Collection in Java.
- Object Oriented- Java is an object oriented programming language as already said earlier.(Click here to know about OOP ).
- Platform Independent- Java is a platform independent language. Code written in Java on one platform can run on other platforms as well without any change.
- Portable- Java is portable because it is platform independent. It means that you can run the byte code on any platform.
- Robust- Robust means strong and that is Java. Java has a better security and an automatic garbage collection. It is also portable across many operating systems.
- Dynamic- Java programs once written one platform can be modified on other platforms.
- Multi threading- Java supports multi threading. Thread is a program that can run concurrently. Thus multiple threads(programs) can run in parallel to make a job much faster. Each thread does not require different memory because threads share the same memory also called as pool.
The answer is no. An object oriented programming language should possess some features like abstraction, encapsulation, polymorphism and all primitive types should be objects. Since Java does not possess the last feature that is why it is not complete OOP language.
Comments
Post a Comment