in a constructor what happen if u call super and this in
the same class? i know that it is not possible to call
both in the same one? if we call what will happen?
Answer Posted / raja
It Works fine with out any Exceptions,because in java each
and every class is inherited from the object class indirectly...
public class consex
{
public consex(String a)
{
super();
System.out.println(a);
}
public static void main(String dd[])
{
consex c=new consex("raja");
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
When parseint method can be used?
What initialize variables?
What is the difference between superclass and subclass?
what is aggregation in java?
What is parameter example?
What are keywords in java?
What does pointer mean?
Why a dead thread occurs?
What is thread safe java?
What is the difference between synchronized and synchronized block?
What is multiple inheritance? Is it supported by java?
What is thread safe singleton?
What is the list interface in java programming?
What does \ mean in regex?
Explain the features of java?