Things you need to know about Java
1. Object-Oriented : The first thing that you need to know about Java is that it is an
object-oriented
programming language. This means that Java allows you to create objects
and to work with them. Some of the advantages of object-oriented
programming languages are inheritance and encapsulation. Don't worry if
you don't understand these terms. You will learn more about them later.
2. Platform-indepedent : Java is a
platform-independent
programming language unlike C and C++. This means a Java program
written in your system that runs on Windows 7 can be executed in another
platform (say Mac). This is why people offer refer Java as
"Write once, Run Anywhere".
3. Java is secure : Unlike C, Java does not use
pointers.
It means, Java does not usually deal with memory storage and this is
why Java is said to be more secure. Data from one object cannot be
accessed by another object without your permission.
4. Java is both compiled and interpreted :
Java is first compiled and the source code is converted into Byte-code
which is a language that can be understood by a Java Virtual Machine
(JVM). Then, JVM interprets the byte-code into the machine language of
the computer in which the JVM runs. This is why, Java is referred to be a
programming language that is both compiled and interpreted. However,
you can compile the byte-code into the machine language using the
Just-in-Time compiler, though, it is not the case most of the time.