1.java Intro
1.java Intro
1.java Intro
Java Platform :
· Java Platform is a collection of programs that help programmers to
develop and run Java programming applications efficiently.
· It includes an execution engine, a compiler, and a set of libraries in
it. It is a set of computer software and specifications.
· James Gosling developed the Java platform at Sun Microsystems,
and the Oracle Corporation later acquired it.
Java Features:
· It is one of the easy-to-use programming languages to learn.
· Write code once and run it on almost any computing platform.
· Java is platform-independent. Some programs developed in one
machine can be executed in another machine.
· It is designed for building object-oriented applications.
· It is a multithreaded language with automatic memory
management.
· It is created for the distributed environment of the Internet.
· Facilitates distributed computing as its network-centric.
Java Terminology:
5. Garbage Collector:
· In Java, programmers can’t delete the objects. To delete or
recollect that memory JVM has a program called Garbage
Collector.
· Garbage Collector can recollect the of objects that are not
referenced. So Java makes the life of a programmer easy by
handling memory management.
6. ClassPath:
· The classpath is the file path where the java runtime and Java
compiler looks for .class files to load.
· By default, JDK provides many libraries. If you want to include
external libraries they should be added to the classpath.
Example Program:
class FirstProgram {
public static void main(String[] args)
{
// prints Hello World
System.out.println("Hello World");
}
}