Can we inherit the constructor in a Class?please give one
example.

Answer Posted / praseen

We can not inherit the constructor in a class. Becoz we can't
have same class name. The constructor hava the same name as
of the class name.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a few methods of overloading best practices in java?

513


Why does java not allow multiple public classes in a java file ?

3453


What is array length in java?

528


What about interthread communication and how it takes place in java?

549


Why is logger singleton?

564






How many types of voids are there?

539


what is synchronization? : Java thread

563


Can we have a try block without catch block?

571


Why we use methods in java?

542


Which sorting algorithm is in place?

537


what is daemon thread and which method is used to create the daemon thread? : Java thread

531


What state is a thread in when it is executing?

528


What are the disadvantages of using inner classes?

557


What is incompatible types in java?

541


What are 3 data types?

548