What is the correct answer?


A package is a collection of

A. classes

B. interface

C. editing tools

D. classes and interfaces

Correct Answer :

D. classes and interfaces

Related Questions

A panel can not be added to another panel. Any class may be inherited by another class in the same package. When we implement an interface method, it should be declared as public. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… A class may be both abstract and final. When we implement the Runnable interface, we must define the method class.forName(...) creates an instance of java ODBC driver Objects are passed to a method by use of call-by-reference. With javadoc, which of the following denotes a javadoc comment? Consider the following class definitions: class maths { student student1;… In a single Servlet class we can use____________ Which of the following command lines options generates documentation for… A Java monitor must either extend thread class or implement Runnable interface. An individual array element that is passed to a method and modified in… Which javadoc tag is used to denote a comment for methods parameters? When we invoke repaint () for a Component, the AWT invokes the method: In order to connect to a database through java program we must create… A JSP file can be stored_________________ The break statement is required in the default case of a switch selection… Which of the following represent legal flow control statements? forName() is a static factory method Message-Driven beans act as a listener for the Java Message Service API,… Which of the following will produce a value of 22 if x=22.9: A string object can not be modified after it is created. All methods in an abstract class must be declared abstract. Which of the following keywords are used to control access to a class… Which key word can protect a class in package from accessibility by the… Any method in a supper class can be over ridden in its subclass. In RMI before running the client program we must start RMI Registry. The default case is always required in the switch selection structure.