adspace
what is constructer?what are the type of constructer with
example.
Answer Posted / kool
A constructer has same name as class .it does not have any
data type in a program we can only have one constructer
with a class name because they can be overloaded.if we dont
create one the programe creates one for us.
public class kool{
/** constructer
public kool(){
*/
}
}
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Can we extract main method from another class?
what is reflection api? How are they implemented?
What if I write static public void instead of public static void?
How does java handle integer overflows and underflows?
What do you understand by casting in java language? What are the types of casting?
Are jvm’s platform independent?
What is the locale class?
What is the java api?
What is the resourcebundle class?
What is the first argument of the string array in main method?