A. 0 . . . 32767 B. 0 . . . 65535 C. –256 . . . 255 D. –32768 . . . 32767 E. Range is platform dependent.
A. 3/2 B. 3<2 C. 3*4 D. 3<<2 E. 3*2^2 F. 3<<<2
public class Test { public static void replaceJ(string text) { text.replace (‘j‘, ‘l‘); } public static void main(String args) { string text = new String (“java”) replaceJ(text); system.out.printIn(text); } } What is the result?()
A. The program prints “lava” B. The program prints “java” C. An error at line 7 causes compilation to fail. D. Compilation succeeds but the program throws an exception.