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
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
What is cache in java?
What is the use of entity class in java?
Name primitive java types.
What is profile in java?
What is a singleton in java?
What is persistence xml in java?
How do I enable javascript?
Is jdk an ide?
What is the point of lambda expressions?
What are the differences between java’s old java date api and java 8’s date and time api?
What is the difference between a while statement and a do statement?
What is java web application?
What is setstring method in java?
What is mdb in java?