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


Please Help Members By Posting Answers For Below Questions

What is the first argument of the string array in main method?

1030


What is the resourcebundle class?

1012


What is the java api?

994


What is the locale class?

1024


What if I write static public void instead of public static void?

934


what is reflection api? How are they implemented?

1105


Can we extract main method from another class?

1034


What do you understand by casting in java language? What are the types of casting?

923


How does java handle integer overflows and underflows?

1113


Are jvm’s platform independent?

982