hoe can u call a constructor of a private classs to other
inherited claa??
Answer / ditendra
class can't be private if it is not a inner class .
we can call constructor of inherited class from private
inner class using super()method.
| Is This Answer Correct ? | 18 Yes | 0 No |
What are null interfaces? Give some examples?
What does || mean in vectors?
What is the method overriding?
why should we get the following error ? Exception in main method NoClassDefFoundError:classname could anyone give the detail clarification on how java compiler can look for .class file?
What is the use of static class?
Explain the difference between abstract class and interface in java?
What is public/private protected in java?
How can we find the actual size of an object on the heap?
Can you use this() and super() both in a constructor?
Describe what happens when an object is created in java ?
What are pass by reference and pass by value?
Can we restart a dead thread in java?