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

Is java 100 percent pure object oriented?

684


Is java is a technology?

695


On which platform j2ee is based?

719


What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

705


What is the best java compiler?

647


What is java developer?

649


What is a java ee container?

647


Is class a data type in java?

680


What is java transaction api (jta)?

691


What do you mean by the deployment descriptor?

699


What is the preferred size of a component in java?

636


What is j2ee application?

738


What is java developer job description?

630


What is bean factory, have you used xmlbean factory?

709


What is a jpanel in java?

668