adspace
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
What is the first argument of the string array in main method?
What is the resourcebundle class?
What is the java api?
What is the locale class?
What if I write static public void instead of public static void?
what is reflection api? How are they implemented?
Can we extract main method from another class?
What do you understand by casting in java language? What are the types of casting?
How does java handle integer overflows and underflows?
Are jvm’s platform independent?