switch(x) { default: System.out.println(“Hello”); } Which two are acceptable types for x?()
A. byte B. long C. char D. float E. Short F. Long
A. public B. private C. protected D. transient E. default access
public class Test { public static void main(String[] args) { int x = 0; assert (x > 0): “assertion failed”; System.out.println(“finished”); } } What is the result?()
A. finished B. Compilation fails. C. An AssertionError is thrown. D. An AssertionError is thrown and finished is output.