2. Introduction to Java
2. Introduction to Java
2. Introduction to Java
to Java
Java
• Java is a high-level (object-
oriented) programming language
originally developed by Sun
Microsystems and released in
1995.
• Java is now maintained and
distributed by Oracle Corporation
since 2010.
• Java derives most of its syntax
© K.S.from
Mbise C and C++
Introductionprogramming
to Java Slide 2
Java cont…
• Java systems contain:
• Environment – hardware or
software environment in which a
program runs.
• Language – the Java language
itself
• APIs – Java class libraries
• Java Virtual Machine (JVM)
© K.S. Mbise Introduction to Java Slide 3
Advantages of Java
• Easy to learn
• Pure object-oriented language
• Extensive documentation
• Faster application development
because of code reuse
• Platform independence (Write
once, run anywhere)
• Automatic garbage collection
© K.S. Mbise Introduction to Java Slide 4
Writing Java application
• In Java, all codes must reside
inside a class.
• The name of a source file is very
important.
• By convention, the name of that
class should match the name of
the file that holds the program.