|Execution Environment||Java code is first compiled into class
files containing byte code
and then executes by JVM. Java is run
within JVM and needs JDK or JRE.
|Support of Closures||Java doesn't care for method as first class
citizen and only way to replicate
end is by using anonymous class.
|OOP||Java is an Object Oriented
Programming language.It provides
packages to group related class
mutually, then provides much better
deployment control by using JAR,
WAR and EAR.
|Write Once Run Anywhere (WORA)||The java used byte code for achieving the
platform independence concept.
|Block vs Function based Scoping||Java mostly uses block based scoping
i.e. a variable gone out of scope
immediately control comes out of the block,
unless until it’s not a
instance or class variable.
|Constructors||The Java constructors
contain some of the special properties
(e.g. constructor chaining and ensuring
that super class constructor runs previous to
|NullPointerException||Java have NullPointerException,
because Java is a statically