Answer Posted / nagendra kumar
1.A Constructor is Just like a method without return type.
2.The Class name and the Constructor name should be same.
3.Constructor are useful to initialize instance variable
with their default values.
4.Constructor can be executed only once while creating the
Object.
Is This Answer Correct ? | 43 Yes | 2 No |
Post New Answer View All Answers
How do you reverse sort a list in java?
What are predefined functions?
List some java keywords sun like c, c + + keywords?
What is array command?
What does this mean java?
Where local and global variables are stored?
How are this() and super() used with constructors in java programming?
What is the difference between the paint() and repaint() methods?
Write a program to print count of empty strings in java 8?
What are the differences between include directive and include action?
Does list allow duplicates in java?
Explain reverse a linked list iterative solution in java?
Can a main method be declared final?
Define interface in java?
What is the advantage of functional interface in java 8?