Computer Science, asked by PRAX16, 1 year ago

Write a program in java to print 'Hello World' on the screen. Which type of method does it use?

Answers

Answered by nitish8089
7
check out the program and output..
System : class
out: object
println:method name.
when we use print method it's invoke the toString()
Attachments:
Answered by nidhimishra2486
1

Answer:

class Hello World;

{

Public static void main (String args[ ] );

{

System.out.println("Hello world!");

}

}

output

we use println method

Similar questions