In this article, you will learn about the fundamental features of Java programming language. It’s like you need to learn the alphabet before learning how to read and write.Generally, Java is a simple, robust and secure programming language. Here are the most important features of Java:
1. Java is Simple:
The Java programming language is easy to learn. Java code is easy to read and write.
2. Java is Familiar:
Java is similar to C/C++ but it removes the drawbacks and complexities of C/C++ like pointers and multiple inheritances. So if you have background in C/C++, you will find Java familiar and easy to learn.
3. Java is an Object-Oriented programming language:
Unlike C++ which is semi object-oriented, Java is a fully object-oriented programming language. It has all OOP features such asabstraction,encapsulation,inheritanceandpolymorphism.
4. Java supports Functional programming:
Since Java SE version 8 (JDK 8), Java is updated with functional programming feature like functional interfaces and Lambda Expressions. This increases the flexibility of Java.
5. Java is Robust:
With automatic garbage collection and simple memory management model (no pointers like C/C++), plus language features likegenerics,try-with-resources,… Java guides programmer toward reliable programming habits for creating highly reliable applications.
6. Java is Secure:
The Java platform is designed with security features built into the language and runtime system such as static type-checking at compile time and runtime checking (security manager), which let you creating applications that can’t be invaded from outside. You never hear about viruses attacking Java applications.
7. Java is High Performance:
Java code is compiled into bytecode which is highly optimized by the Java compiler, so that the Java virtual machine (JVM) can execute Java applications at full speed. In addition, compute-intensive code can be re-written in native code and interfaced with Java platform viaJava Native Interface(JNI) thus improve the performance.
8. Java is Multithreaded:
The Java platform is designed with multithreading capabilities built into the language. That means you can build applications with many concurrent threads of activity, resulting in highly interactive and responsive applications.
9. Java is Platform Independence:
Java code is compiled into intermediate format (bytecode), which can be executed on any systems for which Java virtual machine is ported. That means you can write a Java program once and run it on Windows, Mac, Linux or Solaris without re-compiling. Thus the slogan “Write once, run anywhere” of Java.Besides the above features, programmers can benefit from a strong and vibrant Java ecosystem:
Java is powered by Oracle – one of the leaders in the industry. Java also gets enormous support from big technology companies like IBM, Google, Redhat,… so it has been always evolving over the years.
There are a lot of open source libraries which you can choose for building your applications.
There are many superior tools and IDEs that makes your Java development easier.
There are many frameworks that help you build highly reliable applications quickly.
The community around Java technology is very big and mature, so that you can get support easily.
That’s why Java has been ranking as #1 programming language in the world by popularity, according tostatistics by Tiobe Index.So congratulate you on choosing Java as the programming language for developing awesome applications. Next topic: How to write your first Java program
The Java Language Environment
Java Programming Language Enhancements
The Java Language Specification
About the Author:
Nam Ha Minhis certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him onFacebookand watchhis Java videosyou YouTube.