What is public static void main?
What is an example of procedure?
What do you mean by object?
What is the difference between java and .Net?
What is string in java is it a data type?
How will you communicate between two applets?
What is meant by nested loop?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
what is abstract method with example?
How do you print array in java?
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.
In Serialization, whether you will use Static variables?
Is it possible to use string in the switch case?