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 / ajay dhingra
It will run fine with no exception here is the example :
public class CheckException extends Thread{
public CheckException(){
super.start();
this.start();
}
@Override
public synchronized void start() {
// TODO Auto-generated method stub
super.start();
}
}
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What are the 8 data types in java?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
Why doesn't the java library use a randomized version of quicksort?
What are synchronized methods and synchronized statements in java programming?
What is nextint java?
Explain parallel processing in java8?
Can a class be declared as static?
How big is a pointer?
What is an example of a boolean?
What is equals method in java?
Difference between final and effectively final ?
What is the difference between static class and normal class?
How do you reverse a string in java without using string buffer?
How much ram can a 64 bit processor theoretically?
What is strings in java?