Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started