What is inner class?what is the use of inner class?where we
create the object for inner class? and inner class can
extend any class or inner class can implement any interface?
Answer / gajendar
In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class.
we can create object for inner class in methods of outer class.it can extend exactly 1 class or impliment 1 interface
| Is This Answer Correct ? | 1 Yes | 0 No |
Is void a return type?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is the meaning of nullable?
What happens when you assigned a 'double' value to a 'String'?
explain about method overloading and method overriding with difficult examples
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?
What super () does in java?
What is the importance in context in JDBC connection pools?
What does sprintf return?
What is meant by object oriented programming – oop?
To set the position and size of a component, which methods are used?
What is the reflection?