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 is application client?
What are the types of j2ee clients?
What is deployer?
What is the best java course?
How to invoke stored procedure in hibernate?
Why tomcat is used in java?
How many java languages are there?
Why java is called robust and secure?
J2ee is a container centric architecture. Explain.
What is external subset?
What are different modules in spring?
What are the components of j2ee applications?
What do you mean by j2ee module?
What is java full stack developer?
What is form-based authentication?