Whats the O/p of the below code snippet ? And explain how does it imply the concept of call-by-value/call-by reference. (PS : Pls ignore syntax errors)
public class One {
public oneA(){
sop ("Into One--");}
}
public class Two extends One{
public twoT(){
sop ("Into Two--"); }
}
public class Home {
One a; Two t;
public static void main(argv[])
{
sop ("In Home--");
sop(a.oneA());
sop(t.oneA());
sop(a.twoT());
sop(t.twoT());
}
}
Answer Posted / jahir
compile time error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a j2ee module?
What is jlayeredpane java?
Is j2ee a framework?
What is business method?
What are the components of J2EE application?
What is a gui in java?
What are the components and containers in java?
What every java developer should know?
What is layout in java?
Difference between load and get method?
What is the use of method save()?
What is enterprise information system?
What is mean by j2ee?
What do you understand by connector? Explain connector architecture.
What is the difference between load() and get()?