Can private class be inherited in java?
No Answer is Posted For this Question
Be the First to Post Answer
Can you call a method on a null object?
How do you convert an int to a double in java?
How many types of assembly languages are there?
What is the difference between keyword and identifier?
How do you print array in java?
What is meant by class loader? How many types are there? When will we use them?
What is an exception? difference between Checked and Unchecked exception in Java
0 Answers SkillGun Technologies,
What data type is a string?
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.
How do you convert int to char in java?
When will we use class loader?
What are java threads?