Correct Answer: They may exist, but they must be public, static and final.
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
The @Override annotation
The StringBuffer and StringBuilder classes in Java are optimized for
A deadlock error occurs when a Java program
Output of below code String a='abc'; String b='abc'; String c=new String('abc'); if(a==c && a.equals(b)){ System.out.println('They are equal'); } else System.out.println('They are not equal');
public class A { private int m = 5; class N { private int m = 3; public void print() { System.out.println('m=' + m); } } public static void main(String[] args) { A a = new A(); N n = a.new N(); n.print(); } } What is the output?
You use a unary minus sign preceding a value to make the value ____.
Methods used with object instantiations are called ____ methods.
A(n) ____ variable is known only within the boundaries of the method.
A(n) ____ loop is one that performs no actions other than looping.
A declaration for an enumerated type begins with the ________ key word.