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 / jitendra
Cannot make a static reference to the non-static field a
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the component of java?
What is javafx java?
What is cmp in j2ee?
What is included in j2ee?
What is create method?
Is j2ee and jee same?
How many java languages are there?
Describe action form?
Describe the ear, war, and jar.
What is the latest technology used in java?
Which is latest technology in java?
What is full form of j2ee?
What are the j2ee client types?
What is source file in java?
What is application client container?