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);
}
}
Answer Posted / guest
/.kt
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is metaspace?
What is the diffrence between a local-tx-datasource and a xa-datasource?
What is the purpose of the wait(), notify(), and notifyall() methods?
Why is actionform a base class rather than an interface?
What is the difference between the font and fontmetrics classes?
What is the difference between the session.get() method and the session.load() method?
For which statements does it make sense to use a label?
Why use POJO when I can use hashmap
Is a class a subclass of itself?
What is a modular application? What does module-relative mean?
How messaging services are done, before release of JMS?
What is the difference between RMI registry and OS Agent?
What are various types of class loaders used by jvm?
Where can I ask questions and make suggestions about seam?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?