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
Is eclipse a jdk?
How do I enable jvm?
can a program use more than one command-line argument?
Is lambda expression an object?
What is spliterator in java se 8?
Is java installed on windows 10?
What if I write static public void instead of public static void?
What is data persistence in java?
What are java’s rules regarding tabs, spaces and newline characters?
How do you create a jar file?
Is jpa a framework?
What is java lang noclassdeffounderror?
What is the difference between lambdas and delegates?
What is property file in java?
What is a yaml file in java?