Write a Java program to print “Java is an Object-Oriented Programming language”
Answers
Answered by
1
Answer:
class JAVA
{
// Your program begins with a call to main().
// Prints "Hello, World" to the terminal window.
public static void main(String args[])
{
System.out.println("Java is an Object-Oriented Programming language");
}
}
Explanation:
Answered by
2
public class Main {
public static void main(String [] args) {
System.out.println("Java is an Object-Oriented Programming language");
}
}
- Line 1 - Declares class name as "Main".
- Line 2 - Main method which is required for almost every valid java program.
- Line 3 - Printed the given text.
Hope it helps...
Similar questions