Computer Science, asked by tina08, 8 months ago

What is JAVA ? How to write java program? Write a program in java to print a message​

Answers

Answered by guptayashasvi126
2

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

Answered by Anshu33845
1

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.

Similar questions