Define the parts of Java program with example
Answers
Answered by
0
Answer:The three main components of Java language are JVM, JDK and JRE which stands for Java Virtual Machine, Java Development Kit and Java Runtime Environment respectively. Each components work separately here. Let's understand each one of them individually.
Explanation:
Answered by
2
1.3 Parts of Java Program
Java programs are made up of different parts. We’ll begin by looking at a simple example:
/*
This program demonstrates
parts of a java program
*/
public class FirstProgram
{
public static void main(String[] args)
{
// Display message.
System.out.println("Hello World!");
}
}
Similar questions