Features
Features
Features
2
• Simple:-
- Syntax is based on C++ (So easier for programmers to learn it after C++).
- Removed many confusing and/or rarely-used features e.g., explicit pointers,
operator overloading etc.
- No need to remove unreferenced objects because there is Automatic
Garbage Collection in java.
• Object-Oriented:-
- Object-oriented programming(OOPs) is a methodology that simplify software
development and maintenance by providing some rules.
- Basic concepts of OOPs are:-
- Object
- Class
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
3
• Platform Independent:-
- Java code can be run on multiple
platforms.
Class File
- e.g. Windows, Linux, Sun Solaris,
Mac/OS etc.
- Java code is compiled by the
Compiler and Converted into Windows
Linux JVM MAC/iOS JVM
bytecode. JVM
4
• Robust(All Above Points Makes JAVA Robust)
5
• Multithreaded:-
- A Thread is like a Separate Program, executing Concurrently.
- We can write Java programs that Deal with many Tasks at once by defining
Multiple Threads.
- The main Advantage of Multi-Threading is that it doesn't occupy memory for
each thread.
- It shares a Common Memory Area.
- Threads are important for Multi-Media, Web applications etc.
• Distributed:-
- We can create Distributed Applications in Java.
- RMI (Remote Method Invocation) and EJB (Enterprise JavaBeans) are used for
creating Distributed Applications.
- We may access files by calling the methods from any machine on the Internet.