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
Is java 100 percent pure object oriented?
Is java is a technology?
On which platform j2ee is based?
What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?
What is the best java compiler?
What is java developer?
What is a java ee container?
Is class a data type in java?
What is java transaction api (jta)?
What do you mean by the deployment descriptor?
What is the preferred size of a component in java?
What is j2ee application?
What is java developer job description?
What is bean factory, have you used xmlbean factory?
What is a jpanel in java?