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 a policy?

1770


What restrictions are placed on the values of each case of a switch statement?

535


What is abstract schema?

553


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1556


What state does a thread enter when it terminates its processing?

600






what are the advantages of JTA over JTS?

1669


What is permgen or permanent generation?

581


how to use debug in my elipse to solve problems that exist in my project

1762


What are the call back methods in entity bean?

557


What is clustering? What are the different algorithms used for clustering?

576


What are the different methods of identifying an object?

573


what is Activation Instantinator?

1907


What is colon_pkg_prefixes and what is its use?

1997


Why a component architecture for the java platform?

578


What are the difference between RMI and CORBA?

619