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 is java ee server?
Describe the ear, war, and jar.
What is java ee technologies?
Enlist the technologies embraced in j2ee?
Who generates bytecode in java?
Why java is called portable language?
How do you run a java program?
Give some advantages of orm (object-relational mapping)?
What is a web container j2ee?
What are the components and containers in java?
What is fatal error?
Is java gui dead?
What are the components of j2ee?
What are types of j2ee clients?
What is group?