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?
Is java an assembly language?
Which server is best for java?
What is jaxr provider?
What is document?
Which is best eclipse for java?
What is digest authentication?
What do you understand by connector? Explain connector architecture.
Is java safe to download?
What is j2ee product provider?
What is considered as a web component?
What is a component in java?
Is string a primitive data type in java?
What are j2ee components?
to update a batch in a table in jdbc which method of statement object is used