What would be the output, if it is executed as a program?
A. name =, pass =
B. name = null, pass = null
C. name = null, pass = false
D. name = null pass = true
E. Compile error.
What is the result?
A.
ii = 1
ii = 2
B. Compilation fails
C. The program prints nothing
D. The program goes into an infinite loop with no output
E. The program goes to an infinite loop outputting:
ii...
You are developing a banking module. You have developed a class named ccMask that has a maskcc method.
Given the code fragment. You must ensure that the maskcc method returns a string that hides all ...
Which is true?
A. Sum for 0 to 0 = 55
B. Sum for 0 to 10 = 55
C. Compilation fails due to error on line 6.
D. Compilation fails due to error on line 7.
E. An Exception is thrown at the runtime.
Which two definitions of class C are valid?
A. class C extends A implements X { }
B. class C implements Y extends B { }
C. class C extends A, B { }
D. class C implements X, Y extends B { }
E. class C...