why constructor dont have returns type?

Answer Posted / mahesh

we need not to call a constructor so it need not to return
any value for us thats y it does not contain a return type.....

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you reverse a word in java?

523


What is the benefit of using enum to declare a constant?

649


What is the difference between instanceof and isinstance?

554


What is difference between class and object in java?

521


How to change value in arraylist java?

489






Is oracle charging for java?

537


What is difference between equals and hashcode method?

565


What are basic data types?

553


Are private methods final?

475


How to instantiate member inner class?

619


What are thread local variables?

542


Define reflection.

569


What is ascii format?

539


What is predicate in java?

553


Can we use string in the switch case?

568