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 single tier architecture in java?
What is a j2ee container?
What is ejb container provider?
What is a java ee container?
What is DDP?
What is caller?
What is container-managed persistence?
Why java is called portable language?
What is java ee sdk?
What is actionerrors?
What does j2ee stand for?
What is delegation?
Is java ee and j2ee same?
How java is used in web applications?
What are the main components of the j2ee application?