Features of Java Programming Language |
By the end of this Article you will be able to:
1) Understand Features of java.
Features of java programming language:
Features of java programming language:
1) It’s a high level language:
Note: A high level language is a programing language in which all the commands will be in general English language only.
In machine level language all the commands will be in 0’s and 1’s only.
So in java almost all the commands we use to write programs are high level (English) words only.
Levels of programing languages we can say based on words we use:
Low level or machine level language: All the commands will be in 0’s and 1’s difficult to understand.
Middle level language: If you can see in c, more commands are in English only even though some commands like pointers we cant understand just by reading them. So because of the properties like these c is called as middle level language.
But if you can see in java, all the commands will be in high level language only. That’s why java is called as high level language.
2) Simple:
If you know c and c++ programing then after learning java programing language you can feel that java programming is easier than c and c++.
No need to understand pointer to code in java language. As in java there is no concept called pointers.
Let us understand Features of Java. Java is Simple language means Certain complex features like operator overloading, multiple inheritance, pointers, explicit memory de allocation are not present in Java language. This makes java simple.
3) Platform Independence:
A platform is nothing but the hardware and software environment in which a program runs.You know that in c language if you write one program and compile the file then you will get one exe file, by executing (running or double clicking) which we will get output.
Had you ever tried copying that exe to other system and executing it?
If your system has same configurations and software as the system in which the exe file created. Then its fine otherwise the exe file will not going to run In your system at all.
This is the disadvantage of c and c++ they are PLATFORM DEPENDENT languages. Which means if you develop one application using c language then you can’t executing the same application in some other system which is having different configuration.
But unlike c and c++ java language has different mechanism.
If write one source file in java language then after compiling the file using compiler you will get one class file( which contain byte code series of 0’s and 1’s) then you can take the class file and you can run this class file through any system in which the jdk(java development kit) is installed.
So to run any java language written program you need jdk.we will discuss about jdk later in the following posts.
That means a java code complied on windows system can be run on UNIX system without any modification in code.
More about platform independence and java architecture in coming post. Don’t miss it guys.
Thank you.
No comments:
Post a Comment