why constructor dont have returns type?

Answer Posted / krushna

because the constructor is not method

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of using java.lang.class class?

524


Can java list contain duplicates?

574


Can we create an object of static class in java?

594


Explain about core java?

624


How do you join strings in java?

522






Explain about sets?

568


What are the 4 types of research methods?

512


Explain an algorithm to find depth of a binary tree.

547


Can we declare an array without size in java?

522


In java how do we copy objects?

548


When should you make a function static?

541


What is size of int in java?

543


what is thread? What are the high-level thread states? : Java thread

786


Is it possible to write a regular expression to check if string is a number?

540


What is the default value of byte datatype in java?

485