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

 11. Setters are void return type methods O True O False

12. To make fields directly accessible to other classes, the class fields

must be marked public. O True O False 13. Static variables of

11. Setters are void return type methods O True O False 12. To make fields directly accessible to other classes, the class fields must be marked public. O True O False 13. Static variables of a class can be accessed, even if the class has not been instantiated O 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 static int employeeD public String name; public static void display(H System.out.printin(employeeID); System.out.printin(name); OIt would be possible to call the display) method and attempt to reference an object's name before any object exists. O 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. O True O False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!