Question: What does this program print? Pay close attention to spaces. public class Test { public static void main(String[] args) { System.out.print(Hello); System.out.println(World); } }
What does this program print? Pay close attention to spaces.
public class Test
{
public static void main(String[] args)
{
System.out.print("Hello");
System.out.println("World");
}
}
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
To print the output on the screen we use the statement Systemoutprintln This ... View full answer
Get step-by-step solutions from verified subject matter experts
