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
What is jradiobutton in java?
What is context attribute?
Which package is imported by default in java?
What is java api for xml registries (jaxr)?
What are the components of J2EE application?
What is actionerrors?
What is considered as a web component?
What software is needed for java programming?
What is delegation?
What is j2ee tutorial?
Is java is fully object oriented?
What are the four types of J2EE modules?
What is frame in java?
Which framework is best for java?
What is deployer?