A.The charAt() method of the String class. B.The toUpperCase() method of the String class. C.The replace() method of the String class. D.The reverse() method of the StringBuffer class. E.The length() method of the StringBuffer class.
A. -1 B. 255 C. 127 D. Compilation will fail. E. Compilation will succeed but the program will throw an exception at line 4.
A. Hello B. Hello Foo C. Hello world D. Compilation fails. E. The code does not run.
A. java.util.Map B. java.util.List C. java.util.Hashable D. java.util.Collection
A.It can be any class. B.No class has access to base. C.The class must belong to the geometry package. D.The class must be a subclass of the class Hypotenuse.
A. Foo has the value of 0. B. Foo has the value of null. C. Foo has the value of true. D. Foo has the value of false. E. An exception is thrown. F. The code will not compile.
A. An exception is thrown. B. The code will not compile. C. The program prints “null” D. The program prints “blue” E. The program prints “green”
A. void methoda(); B. public double methoda(); C. public final double methoda(); D. static void methoda(double d1); E. protected void methoda(double d1);
A. The displayed string can use multiple fonts. B. The maximum number of characters in a line will be 40. C. The displayed width is exactly 40 characters. D. The user can edit the characters.
A. No output is produced. 123 B. No output is produced. 234 C. No output is produced. 1234 D. An exception is thrown at runtime. 123 E. An exception is thrown at runtime. 234 F. An exception is thrown at rijntime. 1234