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


Please Help Members By Posting Answers For Below Questions

What is single tier architecture in java?

483


What is a j2ee container?

575


What is ejb container provider?

456


What is a java ee container?

470


What is DDP?

537






What is caller?

529


What is container-managed persistence?

526


Why java is called portable language?

487


What is java ee sdk?

479


What is actionerrors?

520


What does j2ee stand for?

478


What is delegation?

545


Is java ee and j2ee same?

495


How java is used in web applications?

475


What are the main components of the j2ee application?

477