How to instantiate member inner class?
No Answer is Posted For this Question
Be the First to Post Answer
What is a subsequence of a string?
How do you compare two strings lexicographically?
Which is better stringbuilder or stringbuffer?
What is the independent variable in an experiment?
What is the significance of listiterator?
What do you mean by garbage collection used in java?
What are different exception types exceptions available in java ?
List primitive java types?
did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
What is the purpose of a statement block?
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 will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
2 Answers Infinite Computer Solutions, TCS,