-
Q: What is it reflection (introspection) ? Why is reflection possible in the Java language?
Reflection (introspection) is querying a class about its properties, and operating on methods and fields by the name for a given object instance. Reflection is possible in the Java language because of late binding.
-
-
-
-
If a variable is declared as private, where may the variable be accessed
A private variable may only be accessed within the class in which it is declared.
-
Referencing of Instances
class A { // some code here} class B { // some code here}class Ex {public static void main(string args[]) {A a=new B();B b=new A();a.add();b.add();}Will this program run? Explain the referencing the object instances. What is the result;
-
_________ are light-weight components
Skill/Topic: AWT & AppletsA) Swings
-
-
How to retrieve email ids from distribution list?
We have a small requirement where we need to retrieve the e-mail ids of all the employees in the distributed list using LDAP, can any one give an idea how it can be done?
-
-
-
What modifiers may be used with a top-level class
A top-level class may be public, abstract, or final.
-
What is the return type of a program's main() method
A program's main() method has a void return type.
-
Is it true the JAVA is realy a plateform indepandent?
no, because Java does not support multiple inheritance directly.
-
-
What must a class do to implement an interface
It must provide all of the methods in the interface and identify the interface in itsimplements clause.
-
-
-
-
Java Interview Questions
Ans