What is a reflection package?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
reflection package defines the members and methods which
will give information about class related things
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / janet
java.lang.reflect package has the ability to analyze itself
in runtime.
| Is This Answer Correct ? | 1 Yes | 0 No |
what are the diffrences between interface and abstract class?
What is the collection interface?
Explain the different forms of polymorphism?
How do you use parseint in java?
When we serialize an object does the serialization mechanism saves its references too?
How do you declare an array that will hold more than 64KB of data?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
How the elements are organized in GridBagLayout?
What is static keyword in java?
What are void methods?
What will happen when using pass by reference in java?
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.