To what value is a variable of the Boolean type
automatically initialized?
Answers were Sorted based on User's Feedback
Answer / harikrishna
a variable of the Boolean type
automatically initialized to false
| Is This Answer Correct ? | 10 Yes | 0 No |
What is the most important feature of java? What is an interface?
What is string pool in java?
Explain yield() method in thread class ?
What is the static method?
What is the use of beaninfo?
Does collectionutils isempty check for null?
What is the generic function?
When will you define a method as static?
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.
What does i ++ mean in Java?
When do we need to use internal iteration? When do we need to use external iteration?
Where are the card layouts used?