A method declared as static can not access non-static class members.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Declaring a method synchronized guarantees that the deadlock cannot occur.
Which of the following classes are available in the java.lang package?
The programmer must explicitly create the system .in and system .out objects.
Which of the following are keywords?
A static class method can be invoked by simply using the name of the method alone.
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
Given the codeString s = new String("abc");Which of the following calls are valid?
Which exception is thrown by the read() method of InputStream class?
To delete a file, we can use an instance of class file.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
Which of the following methods belong to the String class?
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
Which of the following methods can be used to draw the outline of a square?
Which of the following command lines options generates documentation for all classes and methods?
Which of the following will produce a value of 10 if x = 9.7?
With javadoc, which of the following denotes a javadoc comment?
A final class may not have any abstract method.
Objects are passed to a method by use of call-by-reference.
Java is fully object oriented programme.
Any method in a supper class can be over ridden in its subclass.
The use of protected keyword to a member in a class will restrict its visibility as follows:
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
The setBackground() method is part of the class
executeUpdate(------------) returns ___________
It is perfectly legal to refer to any instance variable inside of a static method.
Which are the valid ways to create DataInputStream streams?
Which of the following methods can be used to remove a component from the display?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter