Can the constructor of a class be made private?
Correct Answer: Yes
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
Output of this program? public class Test { public static void main (String args[]) { int a, b; a = 2; b = 0; System.out.println (g (a, new int[] {b})); } public static int g (int a, int b[]) { b[0] = 2 * a; return b[0]; } }
Output of the following code? import java.util.*; public class Test { public static void main (String args[]) throws Exception { List l = new ArrayList (); int a = (int)(3 * 2.5); for (int i = 0; i < 10; i++) l.add (i); String s = 'Hello'; l.add (a, s.getBytes ('UTF-8')[2]); System.out.println (l); } }
What is the java.net.IDN class in 1.6?
What type of the method ceil(double) from the Math class?
Which is the correct syntax for suggesting that the JVM perform garbage collection?
When you create an array of objects, each reference is assigned the value ____.
The expression ""Java "" + 1 + 2 + 3 evaluates to ________.
The cookie property is created with a required ____ attribute.
The class used as a basis for inheritance is the ____ class.
The characters ____ move the cursor to the next line when used within a println() statement.