Can a constructor have different name than a class name in java?



Can a constructor have different name than a class name in java?..

Answer / Sana Parveen

No, a constructor's name must be the same as the class name in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this

11 Answers   IBM, L&T,


what is the use of clone() in real time scenario?

2 Answers   Quinnox,


What are synchronized methods ?

1 Answers  


What is the full form of jpeg?

1 Answers  


What is a Java package and how is it used?

2 Answers  


What is this keyword in java?

1 Answers  


How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?

1 Answers   TCS,


What is the difference between a switch statement and an if statement?

1 Answers  


Why are lists ordered in java?

1 Answers  


Is empty in java?

1 Answers  


what is enumset?

1 Answers  


What are the differences between getting and load method?

1 Answers  


Categories