What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference.
(Note : Pls ignore syntx errors)
public class One {
sop ("Into One--");
}
public class Two extends One{
sop ("Into Two--");
}
public class Home {
One a; Two t;
public static void main(argv[])
{
sop ("In Home--");
sop(One.a);
sop(Two.a);
sop(One.t);
sop(Two.t);
}
}
Answers were Sorted based on User's Feedback
Answer / pokuru surendra
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
One.a cannot be resolved
Two.a cannot be resolved
One.t cannot be resolved
Two.t cannot be resolved
| Is This Answer Correct ? | 2 Yes | 0 No |
What is daemon thread?
What is meant by multi-threading?
the same information whether it will connect to the database or it will be used previous information?
What do you know about seam?
What are the high-level thread states?
What event results from the clicking of a button?
how we can implement interface in jsp ?
What is synchronization and why is it important?
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
Explain how will the struts know which action class to call when you submit a form?
Define aop(assepct oriented programing)?
What are the implicit objects?