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 / guest

sorry it ll not give any output as tthere is no object has
been created to call methods of super class

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 jradiobutton in java?

667


What is context attribute?

735


Which package is imported by default in java?

748


What is java api for xml registries (jaxr)?

754


What are the components of J2EE application?

731


What is actionerrors?

738


What is considered as a web component?

767


What software is needed for java programming?

619


What is delegation?

711


What is j2ee tutorial?

686


Is java is fully object oriented?

716


What are the four types of J2EE modules?

773


What is frame in java?

685


Which framework is best for java?

681


What is deployer?

720