![]() |
![]() |
Java if statement | |
Java if-else statement | |
Java nested if-else | |
Java else-if ladder | |
Java Switch case statement | |
Java Nested Switch Case | |
Java Ternary/Conditional operator |
Java while loop | |
Java do-while loop | |
Java for loop | |
Java Enhanced loop/for each loop | |
Java Labelled for loop | |
Java Nesting of loops | |
Java Break and Continue |
Java Programs | |
Java Keywords Dictionary | |
Java Interview Questions | |
The java programming language have following basic features which makes the language more powerful to use.
Usually, a computer programming language is either compiled or interpreted but java combines both these features hence java is two-stage language.
Stage One : In stage one the java compiler translates source code into byte code instructions.Platform Independent
Platform independent means the program written in java can be executed in any kind of operating system.
First the java compiler converts the source code into byte code instructions. Then the interpreter generates machine code which is directly executable by any machine.
Portable
Java supports the feature of portability that means Moving java programs from one PC to another is very easy.
Upgradation of operating system, processors and system resources now never force the change in java program. That’s why java is very popular language in different systems.
All program code and data reside within objects and classes in java language hence java is truly Object oriented programming language.
Java comes with large set of classes, arranged in packages that can be used in programs by inheritance concept.
Robust :
Java is robust language than all others because java has two times execution method that is compilation and interpretation, therefore it provides reliability.
Garbage collection is one of the feature of java, which reduces the programmers task by automatically memory management. Also java provides exception handling, which catches the errors and reduces of risk of application crash.
Secure :
The java language code is much secure from the attacks of viruses. Because the code written in java is in the form of byte code which is not understandable to human.Java is language is used as distributed language for creating applications on networks because of its ability to share both data and programs.
Java applications can be accessed from remote objects on internet very easily as on local system
Java language is very simple language to learn than others. also java has many features of C and C++ languages as it is.
Java is simple because it doesn’t support pointers, pre-processors like header files and micros, goto statement etc.
Java is familiar language because many keywords used in java are easily understandable to us which are similar to C and C++ language.
Java supports the feature of Multithreaded programming which allows us to develop concurrently running programs at a time.
Multithreading performs multiple tasks at a time in background.
The byte code used in java makes the performance of java very remarkable for interpreted language.
The multithreading in java doesn’t crash the application it allows the programmer to correct that code and go ahead. that’s why it enhances the execution speed of java programs.
Java is a dynamic language with the ability of dynamically linking of new class libraries, methods, and objects. Java can also control the type of class with the help of query, making it possible to either dynamically link or abort the program, depending on the response.
Native Methods : Functions of other languages (like C and C++) are supported by the java programs. These methods are known as native methods. So that programmer can make use of efficient functions available in these languages.