What is JAVA ? How to write java program? Write a program in java to print a message
Answers
Answer:
The PrintStream class of Java provides two more methods to print data on the console (in addition to the println() method). The print() − This method accepts a single value of any of the primitive or reference data types as a parameter and prints the given value on the console
Hope it's help you
Answer:
Java is a high level programming language. It is a free and open source programming language. The original name of Java is OAK. The principle of Java is write once run anywhere.
Program:
public class FirstProgram
{
public static void main (string [ ] args)
{
System.out.println ("Message");
}
}
Here,
main(): in Java is the most important method as it is the entry point of any Java Program.
String [ ] args: is the parameter to main method where the argument name could be anything.