Home

What is the correct answer?

4

A method declared as static can not access non-static class members.

A. True

B. False

Correct Answer :

A. True


Related Questions

Message-Driven beans act as a listener for the Java Message Service API,… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… What does the following line of code do?TextField text=new TextField(10); Which of the following string can be used as mode string for creating… The keywords reserved but not used in the initial version of Java re: Which of the following classes are available in the java.lang package? Which of the following statements are valid array declarations? Which of the following keywords are used to control access to a class… Which of the following are the wrapper classes? Two methods cannot have the same name in Java. Which of the following represent legal flow control statements? The break statement is required in the default case of a switch selection… A constructor must always invoke its supper class constructor in its first… JdbcOdbcDriver is an object of Object class forName() is a static factory method A variable declared inside the for loop control can not be referenced… Which of the following methods belong to the String class? The name of the RMI compiler is ___________ Java always provides a default constructor to a class. The check box group class is a subclass of the component class. All methods in an abstract class must be declared abstract. It is perfectly legal to refer to any instance variable inside of a static… Which of the following will produce a value of 10 if x = 9.7? Consider the following class definition.Class Student extends String{}What… What is wrong in the following class definitions? abstract class… A final class may not have any abstract method. The length of a string object 's1' can be obtained using the expression… An EJB is a server-side component that encapsulates the business logic… In a single Servlet class we can use____________ In RMI we invoke client method from remote server