Can we create an object of private class?
No Answer is Posted For this Question
Be the First to Post Answer
what is the difference between abstract class and Interface?where we can use it in realtime projects?
23 Answers Agile Software, Cognizant, IBM, Innodata, Logica CMG, Mitosis, Nagarro, Value Chain,
Why is method overloading not possible by changing the return type in java?
Convert Binary tree to linked list.
What are the common uses of "this" keyword in java ?
Is binary a low level language?
Explain naming conventions for packages?
What are the high-level thread states in java programming?
How to avoid the runtime exception ?
What is immutability in java?
How do you square a number?
Any one can explain how the inerface uses in java. give with example.
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.