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 / agile being
The question clearly specifies "what happen if u _CALL_
super and this in the same class"
By call, probably, they mean:
this(); /*Invoking the constructor*/
super(); /*Invoking the parent class's constructor*/
I think the right answer is that it will raise a compiler
exception. Such a program will not compile.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is finalize method?
What is the difference between import java.util.date and java .util?
When parseint method can be used?
What is the main method java?
What is sortedset in java?
What are the concepts of 'OOPS'?
What is an empty class? What functionality does it offer in Java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is the purpose of the enableevents() method in java programming?
How to reverse a string in java?
Does google use java?
what is synchronization? : Java thread
What is java console application?
How do you square a number in java?
can any body body expalin best definitions & best real time exaples for opps concepts.