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 a relationship java?
What are the components and containers in java?
How many types of modules is defined by j2ee specification?
What is component-managed sign-on ?
Give some advantages of orm (object-relational mapping)?
Describe secure socket layer (ssl)?
What is java j2ee developer?
Why is java considered dynamic?
What is containers in java?
What is cascade delete?
What is jta and jts?
Enlist the technologies embraced in j2ee?
Define orm and its working in j2ee?
What is javafx java?
What is j2ee module?