Java features

Features of Java

Simple
1. Java omits rarely used, poorly understood features those are available in C++.
2. These features include operator overloading, multiple inheritance, destructors, allocation and freeing of memory.
3. Inheritance is simplified by supporting only inheritance, as there is ambiguity in multiple and hybrid inheritance.
4. Garbage collection is the feature which reclaims the memory space by removing orphan objects automatically.
5. Java is much easier to write bug free code. Java language is easy to read and write. Java provides bug free code to allocate and deallocate memory automatically.

Object-Oriented

1. Object oriented programming is promoted as a productive and more natural way for viewing solutions to problems.
2. The classes that are created in one project can be reusable on another project.
3. Object oriented programming is a natural implementation of software development.
4. As most of the problems are stated as objects, the way of implementing OOP is simple.

Robust

1. More emphasis on early checking of the possible problems, later dynamic checking are put by Java.
2. This eliminates the error prone solutions.
3. The biggest difference between Java and C++ is that Java has a built in pointer model which eliminates the overwriting memory and data corruption.
4. Java has true arrays which allow the checking of subscript. Java applications can not gain unauthorized access to memory.
5. Java supports exception handling. Certain abnormal situations can be resolved by using this feature.
6. Flexibility is gained by separating the regular program logic from exception program logic.

Distributed

1. Java has extensive library routines to deal with protocols like TCP/IP,HTTP, FTP
2. Creation of network connections is much easier than C or C++.
3. The objects can be accessed across the internet via URLs with ease

Portable

1. Java compiles source code to bytecode.
2. The intension of bytecode is to execute by Virtual Machine which need to be in native machine code.
3. For each processor type and operating system, JVM need to be compiled for that specific type of machine.
4. Any java bytecode can execute on other machines with JVM.

Interpreted

1. Bytecode s translated to native machine instructions – interpreted- on the fly and are not stored anywhere.
2. As linking is lightweight and more incremental process, the process of development could be exploratory.
3. Compile time information is carried over and available at runtime which is the base for the linker’s type checks

Multithreaded

1. Multithreading is one of the multitasking paradigms. Two parts of the same application can be run concurrently.
2. For example, in a word processing application, writing the document and checking the spellings can be done at a time. This is known as thread based multi tasking.
3. The central idea of multithreading is to minimize the CPU idle time. For example, a car engine keeps running regardless of whether car is moving. The objective is to keep the car moving as much as possible, so as to gain maximum mileage.
4. One benefit of multithreading is better interactive responsiveness and real time behavior.

Platform Independent

1. Java byte code is generated after compiling Java code.
2. Byte code is independent of the computer systems.
3. The byte code is submitted to the JVM of the system, in which it need to be executed. Every system has its own JVM.
4. The byte code is interpreted by JVM. JVM invokes Just In-Time compiler to convert native byte code into the byte code of the running system. Hence, Java is platform independent.

Secure

1. Java enables tamper-free, virus-free systems.
2. The public-key encryption techniques are authenticated in network and distributed environments
3. Using ‘private’ access specifier, data / operations on data can not be shared by another class, except the class in which they were declared.
Java program execution
Java program execution - What is JVM? Explain its roles and functions, Why Java is called as Platform independent language. How Java executable executes on any platform where JVM is available...
Java architecture
Java architecture - Java programming language, Java class file format, Java Application Programming Interface, Java virtual machine...
Java class
Java class - features of Java class, What are accessors and mutator methods in a Java class?, Explain the importance of 'this' reference. Write a code to depicts the use of 'this' reference...
Post your comment
Discussion Board
poblem
plz remove the pratice test bar .
it creates great poblem while reading
utsav kundu 12-31-2011