How do you check if a number is a perfect square?
No Answer is Posted For this Question
Be the First to Post Answer
Is a boolean 1 bit?
How destructors are defined in java?
where is .equals() method and how is it different from == operation <giving some confusing implementation> Is hashing related to these?
Which sorting is best in java?
What is lexicographically smallest string?
Can you add null to a list java?
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 is a generic code?
What is hashmap in java?
What is a cup of java?
What is the scope or life time of instance variables?
What classes of exceptions, caught by a catch clause?