Is it possible to create an array of zero length?
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
Which statement about threading is incorrect?
Output of the following program? public class Test { public static void main (String args[ ]) { B o = new A (); System.out.println (o.content ()); } public String content () throws Exception { throw new Exception (''This is an exception on this.content ()''); } private static class B { public String content () { return ''B''; } } private static class A extends B { public String content () { return ''A''; } } }
What will the length() method in the File class return?
Output of this program? public class Test { public static void main (String args[]) { String a, b, c, d; a = ''Hello1234''; b = ''Hello'' + String.valueOf(1234); c = ''Hello'' + ''1234''; d = new String (new char[]{'H', 'e', 'l', 'l', 'o', '1', '2', '3', '4'}); System.out.print (a == b); System.out.print ('' ''); System.out.print (a.equals(b)); System.out.print ('' ''); System.out.print (a == c); System.out.print ('' ''); System.out.print (a.equals(c)); System.out.print ('' ''); System.out.print (a == d); System.out.print ('' ''); System.out.print (a.equals(d)); System.out.print ('' '' ); } }
Choose the correct statement:
You use the _________ operator to access members of an object.
To create an instance of bigdecimal for 454.45, use ________.
You can declare two variables with the same name in __________.
When you instantiate an object from a class, ____ is reserved for each instance field in the class.
The signature of a method consists of ________.