Advantages of Java
1.Java is an open source
3.Java API's can easily be accessed by developers
4.Java performs supports garbage collection, so doesn't need extra focus on memory management as java support automatic memory managements.
5.Java supports exception handling.
6. Java always allocates objects on the stack
7. Multi-platform support language and support for web-services
8. Using JAVA we can develop dynamic web applications
9. It allows you to create modular programs and reusable codes
10.Java is simple:
Java is simple. It doesn't need prier knowledge of C,C++ etc .You can starts from only. Java is design to be easy to use. Java is easy to write, compile, debug, and learn than other programming languages. Java uses automatic memory allocation and garbage collection where else C++ requires the programmer to allocate memory and to collect garbage so these languages are more complex.
11.Java is object-oriented:
Java is cantered on creating objects, manipulating objects, and making objects work together. This allows us to create an application in modular programs and reusable code.
12.Java is platform-independent:
Java allow us make an application and run any where. As when an application complies then Java converts into Byte code. This byte code can be run any where (Mean any hardware supported or OS).
13.Java is distributed:
Using Java we can work on distributed computers involves several computers on a network working together. Java is designed to make distributed computing easy with the networking capability that is inherently integrated into it.
We can write a network programs in Java are which will send and receive data to and from a file.
14.Java is robust:
Java is a robust means reliable and no programming language can really assure reliability. Java puts a lot of emphasis on early checking for possible errors. Java compilers are able to detect many problems that would first show up during execution time in other languages.
15.Java is multithreaded:
Java supports multithreading are the capability for a program to perform several tasks simultaneously within a program.
16.Java is interpreted programming Languages: The programs are compiled into Java Virtual Machine code called bytecode using interpreter.The bytecode is machine independent and is able to run on any machine that has a Java interpreter. With Java, the program need only be compiled once, and the byte code generated by the Java compiler can run on any platform.
17.Java is secure:
Java is a first programming language to consider security as part of its design. The Java language, compiler, interpreter, and runtime environment were each developed with security in mind.
Performance Slower Than C or C++: Java can be perceived as significantly slower and more memory-consuming than natively compiled languages such as C or C++. Java applications runs on JVM which is a program . It may be written incorrect . Java applications runs on JVM which cause slow down to programs as compare to C and C++