Question: 11. Setters are void return type methods. True O False 12. To make fields directly accessible to other classes, the class fields must be marked



11. Setters are void return type methods. True O False 12. To make fields directly accessible to other classes, the class fields must be marked public. True O False 13. Static variables of a class can be accessed, even if the class has not been instantiated. True O False 14. Given the following code, why does your IDE complain that "non-static variable name cannot be referenced from a static context"? public class Employee public String name public static void di public static int employeeID System.out.printin ID); System.out.printin(name) It would be possible to call the display() method and attempt to reference an object's name before any object exists. 0 The variable name has a null value. O static variables are only accessible from instance methods. O Static variables cannot be referenced from methods. 15. Objects are accessed using reference variables. True O False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
