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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is super constructor?

0 Answers  


Can we override data members in java?

0 Answers  


Write a program to find the greatest of three numbers in java?

0 Answers  


Nested classes VS Inner classes?

3 Answers   Infosys,


what is main difference b/w abstract class and interface

4 Answers  






What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

0 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


What is slash r?

0 Answers  


what is abstract class in Java?

0 Answers   Hexaware, Syntel,


What does it mean that a method or field is “static”?

0 Answers  


whatis Home interface and Remoteinterface? with example?

0 Answers   Saksoft,


why doesn't java run on all platforms?

0 Answers  


Categories