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


Please Help Members By Posting Answers For Below Questions

What is metaspace?

553


What is the diffrence between a local-tx-datasource and a xa-datasource?

582


What is the purpose of the wait(), notify(), and notifyall() methods?

572


Why is actionform a base class rather than an interface?

574


What is the difference between the font and fontmetrics classes?

567






What is the difference between the session.get() method and the session.load() method?

606


For which statements does it make sense to use a label?

593


Why use POJO when I can use hashmap

2053


Is a class a subclass of itself?

593


What is a modular application? What does module-relative mean?

549


How messaging services are done, before release of JMS?

1594


What is the difference between RMI registry and OS Agent?

636


What are various types of class loaders used by jvm?

502


Where can I ask questions and make suggestions about seam?

599


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

590