What is the result?
A. yo ey
B. hey oh hi
C. hey oh hi ey
D. oh hi hey
E. hey oh hi yo ey
F. yo hey oh hi ey
G. Compilation fails.
H. An exception is thrown at runtime.
36. Given:
1. class Hotel { 2. static void doStuff(int x) { 3. assert (x < 0) : "hotel"; 4. } 5. } 6. public class Motel13 extends Hotel { ...
Get OCP Java SE 6 Programmer Practice Exams (Exam 310-065) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.