Page 1 of 1

java

Posted: Sun May 15, 2022 12:59 pm
by answerhappygod
java
Java 1
Java 1 (15.07 KiB) Viewed 67 times
Java 2
Java 2 (12.08 KiB) Viewed 67 times
QUESTION 17 1. class Test{ 2. public static void main(String args[]) { 3. System.out.println(10 * 20 + "point"); 4. System.out.println("point" + 10 * 20); 5. } 6.} What will print? O A. 1020point point 1020 B. 200point point200 O C. 1020point point200 D. 200point point 1020

QUESTION 18 1. class A { 2. int i; 3.} { 4. public class Main { 5. public static void main (String args[]) 6. A test = new A(); 7. System.out.println(test.i); 8. } 9. } O A. Null OB.O O C. Error O D. Could not compile.