what are the types of constructer explain with example
Answer Posted / kailash
there are two types of Constructors .
1. Parameterized Constructor inwhich we give arguments .
2. Default constructor , there no argument is given .
for each class there must be a defult constructor .
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
Explain suspend() method under thread class>
What is a stream in programming?
What is jdk for netbeans ide?
What are tags in java?
What is web xml java?
What is the purpose of jdk?
What are the Advantages of java se 8 new features?
What is a singleton in java?
What is injection in java?
What is factory pattern in java?
What is a java proxy?
What is transient in java?
What is the difference between java se and java ee?
Differences between intermediate operations and terminal operations of java 8’s stream api?
How do I download and install eclipse on windows 10?