What is the correct answer?


It is perfectly legal to refer to any instance variable inside of a static method.

A. True

B. False

Correct Answer :

B. False

Related Questions

Any class may be inherited by another class in the same package. A static class method can be invoked by simply using the name of the method… putValue(...) method takes _____________________- Which javadoc tag is used to denote a comment for methods parameters? Which of the following control expressions are valid for an if statement? Which are the valid ways to create DataInputStream streams? Java always provides a default constructor to a class. Which of the following methods can be used to remove a component from… The modulus operator (%) can be used only with Integer operands. What is wrong in the following class definitions? abstract class… A class may be both abstract and final. When present, package must be the first no comment statement in the file. Which of the following are not keywords? Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… Which of the following statements are valid array declarations? Which exception is thrown by the read() method of InputStream class? Java is fully object oriented programme. Which of the following are the wrapper classes? When we implement an interface method, it should be declared as public. Throwing an exception always causes program termination. Which of the following command lines options generates documentation for… For all insert, update, delete, query operations on a database, ResultSet… A JSP file can be stored_________________ Which of the following methods can be used to change the size of a size()… Which of the following string can be used as mode string for creating… Message-Driven beans act as a listener for the Java Message Service API,… Which key word can protect a class in package from accessibility by the… With javadoc, which of the following denotes a javadoc comment? Every call to wait has a corresponding call to notify that will eventually… If you want to assign a value of 99 to the variable year, then which of…