Which of the following cannot apply to constructors?
Correct Answer: Void return type
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
All class methods in the java.lang package are thread safe. (in 1.5)
What is wrong with the following code? class X extends Exception {} public class Y { public void foo() { try { b(); } finally { ba(); } catch (MyException e) {} } public void b() throws X { throw new X(); } public void ba() throws RuntimeException { throw new RuntimeException(); } }
What protocol is used by the DatagramSocket class?
Which class contains a method to create a directory?
Inheritance is a process by which the objects of parent class acquire the properties of the child class.
Whenever a method requires multiple arguments, the arguments are always separated with ____.
Use the ________ method to write text to a web page.
To use a public variable or method outside of its class, you must ____ the name.
To specify a stacking order, one can use the _____ property.
The __________ method parses a string s to an int value.
Java MCQs | Topic-wise