Features of Java
This is one of the important topic which is asked in interviews at fresher level. Java is a favorite language for many developers because of many reasons. Features of Java is an important section from examination point of view as well as from interview point of view. You are definitely going to face one or more question related to this section.
This is one of the important topic which is asked in interviews at fresher level. Java is a favorite language for many developers because of many reasons. Features of Java is an important section from examination point of view as well as from interview point of view. You are definitely going to face one or more question related to this section.
Features of Java are as follow :
- Platform Independent
- Object Oriented
- Robust
- Multi Threading
- Secured
- High Performance
- This language uses Bytecode which is more faster than ordinary pointer code so Performance of this language is high.
- Garbage collector, collect the unused memory space and improve the performance of application.
- It have no pointers so that using this language we can develop an application very easily.
- It support multithreading, because of this time consuming process can be reduced to execute the program.
This is the most important feature
of Java as you are definitely going to face one question related to this point.
Java is WORA language that means
you can write code in Java once and runs it anywhere on any machine you want.
Unlike other programming languages like C or C++, which are machine dependent,
Java do not generate machine code directly after compilation. C or C++
generate executable which are
machine dependent but Java generates bytecodes
which do not execute directly on machine.
Bytecodes are intermediary codes
not machine code, they are also called IL
(Intermediate Language) code. They get converted into machine code by Java
interpreter (JVM). Different operating systems has their own implementation of
JVM which converts bytecodes according
to OS on which code is being run.
That’s why Java is called WORA
language because you have to write code only once and JVM will generate machine
code according to OS.
![]() |
JavaByNishesh Image 1 |
Java is an object oriented language. I believe most of you are aware of OOPs concept, if not, then always remember one very important feature of OOPs that is "Every thing in this real world having common feature and behavior can be classified in form of classes and then we can create object of those classes having specific feature and behavior".
Take for an example, there is "Animal" class which represents all common feature and behavior of all Animals, but if we want a specific animal like a Dog then we have to create an object of Animal class for representing a Dog.
Most important thing about this feature is that.
Java is not a complete OOPs language because it has the concept of primitive data types. In complete OOPs language everything is in form of classes. Smalltalk is an example of complete OOPs language.
Take for an example, there is "Animal" class which represents all common feature and behavior of all Animals, but if we want a specific animal like a Dog then we have to create an object of Animal class for representing a Dog.
Most important thing about this feature is that.
Java is not a complete OOPs language because it has the concept of primitive data types. In complete OOPs language everything is in form of classes. Smalltalk is an example of complete OOPs language.
Robust stands for "Strong". Java has strong memory management than C or C++. Concept of pointers has been eliminated in Java. Java is robust or strong Programming Language because of its capability to handle Run-time Error, automatic garbage collection, lack of pointer concept, Exception Handling. All these points makes It robust Language.
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 shares the same memory. Threads are important for multi-media, Web applications etc.
When any Language execute multiple thread at a time that language is known as multi threaded Language.
When any Language execute multiple thread at a time that language is known as multi threaded Language.
It is more secured language compare to other language; In this language all code is converted into byte code after compilation which is not readable by human.
When it comes to security, Java is always the first choice. With java secure features it enable us to develop virus free, temper free system. Java program always runs in Java runtime environment with almost null interaction with system OS, hence it is more secure.
When it comes to security, Java is always the first choice. With java secure features it enable us to develop virus free, temper free system. Java program always runs in Java runtime environment with almost null interaction with system OS, hence it is more secure.
It have high performance because of following reasons;
Great keep it up ..
ReplyDelete