Question: 1) public class It { private int myX; public It() { myX = 99; } public int getX() { return myX; } public String toString()
1)
public class It { private int myX; public It() { myX = 99; }
public int getX() { return myX; }
public String toString() { return "" + getX(); } }
Question 1 options:
| 0 | |||||||||||||||||||||||||||||||||||||||||
| 1 | |||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||||||
| 4 3) What is output by the code below? System.out.printf(â%.3fâ,9.3213); Question 3 options:
10) What is the output by the code below? int x = 9; double y = x; System.out.println(y); Question 10 options:
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
