Question: What would the following statements, when used in a Java program, display on the screen? int age; age = 20; System.out.println (My age is); System.out.println(age);
What would the following statements, when used in a Java program, display on the screen?
int age;
age = 20;
System.out.println ("My age is");
System.out.println(age);
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
The most basic way to display a string in a Java program is with the System out println sta... View full answer
Get step-by-step solutions from verified subject matter experts
