Can u write constructor in abstract.If yes den when it will
be invoked.
Answers were Sorted based on User's Feedback
Answer / srinu
yes Abstract class contain constructor. if it will be
invoked the abstract class extending the class .Then that be
invoked.
Ex:
HttpServlet class is abstract class it contain
constructor.it will be invoked the other class extending
HttpServlet it will be invoked.
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / chaitali chari
You cannot have a abstract constructor. If you declare a
constructor as abstract then it would give any error while
compilation saying abstract modifier not allowed.
| Is This Answer Correct ? | 3 Yes | 18 No |
What is the exact difference in between Unicast and Multicast object ?
Difference between Web-based applications,Client- Server applications and Distributed applications?
Explain the scope or life time of class variables or static variables?
What is a deadlock ?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Why to use nested classes in java?
What are access modifiers?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
What is difference between iterator access and index access?
What is the difference between call by reference and call by pointer?
what is unreachable code problem in multiple catch statements
Define max and min heap, also the search time of heap.