What is Java?
Java is an object-oriented programming language based on C and C++, invented by James Gosling and Sun microsystems in 1991. There are three additions of java, each programmer can learn any of those editions supported application they need to form. Firstly, we have Java Standard Edition, this edition contains core libraries like java. lang, java. util, etc. Secondly, we have a java enterprise edition. This edition has APIs like, JMS, EJB, etc. And lastly, we have java micro edition which is used to program java in cell phones, set-top boxes, handhelds, and so on. Java files are converted to bit code format employing compiler then executed by the java interpreter. The whole java code is run on the java virtual machine which provides a runtime environment.
The most popular feature of java is that it’s platform-independent. Compilation happens in bytecode and because of this, java can run on any machine. It is a very secure language as it contains no virus. Java has the feature of multithreading. This feature helps java to do multi-tasking may be a portable language because it can run on any platform. Last of all java is not as fast as C and C++ but provides higher performance than any other language. Java is an OOP based programming language, OOP means object-oriented programming language. And it is also a high-level programming language which does works with objects.
- Complex things are done easily
- Can enable by default and Support by almost all types of browsers
- Fully integrated with HTML/CSS
|Java program should have compiled||Java scripting programs do not require compilation|
|Java is a complex language||it is an easy language|
|It requires more memory||It is lightweight|
|Its objects are class-based||Its objects are prototyped|