What is the difference between interface & abstract class?
No Answer is Posted For this Question
Be the First to Post Answer
How do you use compareto?
how many access specifiers are available in java
Implement a stack with push (), pop() and min() in O(1) time.
what is the difference between static class and singleton class? can we create static class?
2 Answers L&T, Octazen, Vamsi Labs,
What is array length?
what is the default value of a variable char?(If not assigned)
What are the basic concepts of OOPS in java?
0 Answers Axtria, ITC Indian Tobacco Company,
Can a for statement loop indefinitely?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
What is run time allocation?
What is default size of arraylist in java?
Can constructor be static or final?