Exit this survey Basic Java Programming Post Test Default Section Question Title * 1. Which of the following is not a Java Primitive? double int float bit Do Not Know Question Title * 2. Which feature of the Java environment removes unreferenced objects from memory? Object Manager Data Cleaner Memory Inspector Garbage Collector Do not know Question Title * 3. Objects are passed by? Value Constructor Reference Type Do not know Question Title * 4. Which of the following commands outputs to the Console? Print() System.display() System.out.println() Console.print() Do not know Question Title * 5. Java Arrays start at index zero True False Do not know Question Title * 6. Which of the following method signatures will allow the method to be invoked without a call to a Constructor? public static void method() private final void method() public void method() protected void method() Do not know Question Title * 7. Class scope objects are initialized to null True False Do not know Question Title * 8. Which of the following Class definitions will prevent sub-classing? private class ClassA public final class ClassA protected class ClassA class ClassA Do not know Question Title * 9. Java coding conventions recommend Class names to start with a capital letter True False Do not know Question Title * 10. What is result of the following lines of code? int x = 21; int y = ++x; Y will contain 20 Y will contain 21 Y will contain 22 Y will contain 0 Do not know Done