Overview and Characteristics of Java
Overview and Characteristics of Java
The latest release of the Java Standard Edition is Java SE 8. With the
advancement of Java and its widespread popularity, multiple configurations
were built to suit various types of platforms. For example: J2EE for Enterprise
Applications, J2ME for Mobile Applications.
The new J2 versions were renamed as Java SE, Java EE, and Java ME
respectively. Java is guaranteed to be Write Once, Run Anywhere.
Java is −
Object Oriented − In Java, everything is an Object. Java can be easily
extended since it is based on the Object model.
Platform Independent − 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.
Simple − Java is designed to be easy to learn. If you understand the
basic concept of OOP Java, it would be easy to master.
Secure − With Java's secure feature it enables to develop virus-free,
tamper-free systems. Authentication techniques are based on
public-key encryption.
Architecture-neutral − 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.
Portable − Being architecture-neutral and having no implementation
dependent aspects of the specification makes Java portable. Compiler
in Java is written in ANSI C with a clean portability boundary, which is a
POSIX subset.
Robust − Java makes an effort to eliminate error prone situations by
emphasizing mainly on compile time error checking and runtime
checking.
Multithreaded − With Java's multithreaded feature it is possible to
write programs that can perform many tasks simultaneously. This
design feature allows the developers to construct interactive
applications that can run smoothly.
Interpreted − Java byte code is translated on the fly to native machine
instructions and is not stored anywhere. The development process is
more rapid and analytical since the linking is an incremental and
light-weight process.
High Performance − With the use of Just-In-Time compilers, Java
enables high performance.
Distributed − Java is designed for the distributed environment of the
internet.
Dynamic − Java is considered to be more dynamic than C or C++
since it is designed to adapt to an evolving environment. Java
programs can carry extensive amount of run-time information that can
be used to verify and resolve accesses to objects on run-time.
https://www.geeksforgeeks.org/jvm-works-jvm-architecture/
https://chortle.ccsu.edu/java5/Notes/chap05/ch05_4.html
Every object is an instance of exactly one class, which does not change
through the life of the object.
If a field or method is marked private, then the only code that ever accesses
it is found within the class itself.
Fields and methods marked protected are used only by code that
participates in the implementation of the class.
Every local variable is initialized before it is used.
The Java platform security architecture depends on all these promises and many
more. The verification algorithm, which enforces these promises, was outlined in
chapter 6. A more complete description is available in The Java Virtual Machine
Specification, chapter 4. You can check the algorithms out for yourself. Part of the
strength of the Java platform security architecture lies in the fact that many
independent reviewers have checked the algorithms
Sandbox model:-
https://www.geeksforgeeks.org/sandbox-security-model/
https://www.geeksforgeeks.org/throw-throws-java/