Write a program in java to print 'Hello World' on the screen. Which type of method does it use?
Answers
Answered by
7
check out the program and output..
System : class
out: object
println:method name.
when we use print method it's invoke the toString()
System : class
out: object
println:method name.
when we use print method it's invoke the toString()
Attachments:
Answered by
1
Answer:
class Hello World;
{
Public static void main (String args[ ] );
{
System.out.println("Hello world!");
}
}
output
we use println method
Similar questions
English,
7 months ago
Political Science,
7 months ago
Chemistry,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago