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 more difficult than c++?
What is single tier architecture in java?
What is fatal error?
What is java actionlistener?
What is j2ee product?
Where javac is located?
How is java development environment setup?
What is included in j2ee?
How do I run java?
What is a j2ee container?
Who gave the name java?
What is actionerrors?
What is attribute what is asant?
How do I become a java developer?
What will happen when you compile and run the following code?