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
Which method cannot be overridden in java?
Is java free for commercial?
Can a final variable be null?
What does flagged out mean?
Difference between Linked list and Queue?
Explain public static void main(string args[]) in java.
What are the properties of thread?
What does exp mean in math?
Why generics are used in java?
What is the difference between integer parseint and integer valueof?
What is a generic type?
What is the instance of an object?
What are keywords in java?
How do you convert boolean to boolean?
Can a main method be declared final?