o Java language is simple because
o Java syntax is basic on c++
o There is no need to remove unreferenced objects because there is an automatic garbage collection in java
o Java is an object oriented programming language.
o Object oriented programming(oops) is a methodology that simplifies software development and maintenance by providing some rules.
BASIC CONCEPTS OF OOPS ARE:
Java code can be run on multiple platforms.
o There are two types of platforms:
Java provides a software-based platform.
o Java is best known for its security.
o With java we can develop virus-free systems.
o Java is secured because.
o No explicit pointer.
o Java programs run inside a virtual machine sandbox.
o Java language provides these securities by default.
o It uses strong memory management.
o There is a lack of pointers that avoids security problems.
o There is automatic garbage collection in java.
o In c programming, int data type occupies 2 bytes of memory for 32 bit architecture and 4 bytes of memory for 64-bit architecture.
o In java, it occupies 4 bytes of memory for both 32-bit and 64-bit architecture.
o Java is portable because.
o We may carry the java bytecode to any platform.
o It does not require any implementation.
o It converts the source code into machine code.
o Java is faster than other traditional interpreted programming language.
o Because java bytecode is “CLOSE” to native code.
o It is still a little bit slower than a compiled language
o Ex: C++
o We can create distributed applications in java.
o RMI and EJB are used for creating distributed applications.
o A thread is like a separate program, executing con-currently.
o We can write java programs that deal with many tasks at once by defining multiple threads.
o The main advantage of multi-threading is it does not occupy memory for each thread.
o It shares a common area.
o Java is a dynamic language.
o It supports dynamic loading of a class.
o It means classes or loaded on demand.
3 billion devices run java.
o Desktop applications such as acrobat reader,media player,antivirus,etc
o Web applications such as javapoint.com,etc
o Enterprise applications such as banking applications.
o Embedded system.
o Smart card.