Java Introduction
Java Introduction
Sandip Sagare
• Portable
– Unlike C and C++, there are no
“implementation-dependent” aspects of the
specification.
– The sizes of the primitive data types are
specified, as is the behavior of arithmetic on
them.(e.g. int 32 bit)
Mr. Sandip Sagare
• Interpreted
– The Java interpreter can execute Java byte
codes directly on any machine to which the
interpreter has been ported.
• JDK
• JRE
• Java Platform Edition
– J2SE or SE
– J2EE or EE
– J2ME or ME
• JVM- Integral part of jre
• JRE-(private and public)
• IDE- Netbean, Eclipse
Mr. Sandip Sagare
Path and Classpath
double Double
Boxing and Unboxing
• Boxing – it is process of converting value of
primitive data type into object data type .
– e.g.
1. Private
2. Public
3. Protected
4. Default (or Package scope or top level
scope)
1. Default constructor(compiler)
2. Parameterless constructor(Instance)
3. Parametrized constructor
• 4-types
1. for
2. for-each
3. while
4. do-while
}
} //outer class