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
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is use of set in java?
What is static keyword in java?
What are the main concepts of oops in java?
What is skeleton and stub?
What is Classloader in Java?
How does queue work in java?
What is jpa specification?
Does java arraylist maintain insertion order?
Can we write a class without main method in java?
How many unicode characters are there?
How many types of java are there?
What are inbuilt functions?
what is difference between equals and ==?
What is internal iteration in java se 8?