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
What are the components of j2ee applications?
I Want build and release interview questions
Why is java considered dynamic?
What is context attribute?
What is filter chain?
What do you understand by connector?
What type of code is java?
What is difference between javac and java?
Is tomcat a java ee?
How do I become an expert in java?
Explain connector architecture.
Why is java called object oriented?
What does application client module contain?
what is meant by proxy server
What is multi tier architecture in j2ee?