Title: 7 Amazing Features of Java Every Programmer Must Know
17 Amazing Features of Java Every Programmer Must
Know
The primary objective of Java programming
language creation was to make it portable, simple
and secure programming language. Apart from this,
there are also some excellent features which play
an important role in the popularity of this
language.
2Java is a compiled and interpreted language
Unlike many other programming languages including
C and C, when Java is compiled, it is not
compiled into platform specific machine, rather
into platform-independent byte code. This byte
code is distributed over the web and interpreted
by the Virtual Machine (JVM) on whichever
platform it is being run on. Java byte code is
translated on the fly to native machine
instructions and is not stored anywhere.
Compiled Interpreted
3Java solves the problem of platform-independence
by using byte code. The Java compiler does not
produce native executable code for a particular
machine like a C compiler does. Instead it
produces a special format called byte code. Java
byte code is written byte by byte, pair of
hexadecimal numbers represents 1 byte
Platform Independent Portable Language
Write Once and Run Everywhere !
Being architecture-neutral and having no
implementation dependent aspects of the
specification makes Java portable. The compiler
in Java is written in ANSI C with a clean
portability boundary, which is a POSIX subset.
4Most famous programming languages
Java is Simple and Secure
Java is designed to be easy to learn. If you
understand the basic concept of OOP Java, it
would be easy to master. With Java's secure
feature it enables to develop virus-free,
tamper-free systems. Authentication techniques
are based on public-key encryption.
5Architecture-neutral
Software that is designed without regard to the
target platform
Java compiler generates an architecture-neutral
object file format, which makes the compiled code
executable on many processors, with the presence
of Java runtime system.
JAVA BUZZWORDS
6Java is Object Oriented Programming Language
Java is purely an object oriented language due to
the absence of global scope, Everything in java
is an object, all the program codes and data
resides within classes and objects. It comes with
an extensive set of classes, arranged in
packages, object model in java in sample and easy
to extend.
7Java is Robust Distributed Language
Java is easy to learn for programmers. Most
people pick Java as their first programming
language. Moreover, the popularity of Java still
persists in the industry.
Robust
Distributed
Java makes an effort to eliminate error prone
codes by emphasizing mainly on compile time error
checking and runtime checking. But the main areas
which Java improved were Memory Management and
mishandled Exceptions by introducing automatic
Garbage Collector and Exception Handling.
Java is also a distributed language. Programs can
be designed to run on computer networks. Java has
a special class library for communicating using
TCP/IP protocols. Creating network connections is
very much easy in Java as compared to C/C.
8Multi-Threading
Thread is a lightweight and independent
subprocess of a running program (i.e, process)
that shares resources. And when multiple threads
run simultaneously is called multi-threading.
In many applications, you have seen multiple
tasks running simultaneously, for example, Google
Docs where while typing text, the spell check and
autocorrect task are running. Server also uses
multithreading to provide its services to
multiple client requests. In Java, you can create
threads in two ways, either by implementing the
Runnable interface or by extending the Thread
class.
9Visit Us
D-58, Red FM Road, Sector 2, D Block, Sector 2,
Noida, Uttar Pradesh 201301
www.cetpainfotech.com
Contact Us
91 9212172602
query_at_cetpainfotech.com
10THANK YOU!