public class test ( public static void main(string args) { int 1= 0; while (i) { if (i==4) { break; } ++i; } } ) What is the value of i at line 10?()
A. 0 B. 3 C. 4 D. 5 E. The code will not compile.
public class IfTest ( public static void main(stringargs) { int x = 3; int y = 1; if (x = y) system.out.printIn(“Not equal”); else system.out.printIn(“Equal”); } ) What is the result?()
A. The output is “Equal” B. The output in “Not Equal” C. An error at line 5 causes compilation to fall. D. The program executes but does not print a message.
Which statement is true for the class java.util.HashSet? ()
A. The elements in the collection are ordered. B. The collection is guaranteed to be immutable. C. The elements in the collection are guaranteed to be unique. D. The elements in the collection are accessed using a unique key. E. The elements in the collections are guaranteed to be synchronized.