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



What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-..

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 the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-..

Answer / guest

/.kt

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Difference between hashmap and hashtable?

0 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


whats is mean by tiles in struts

2 Answers   SolutionNET,


what is the difference between System.out.println and out.println in java

10 Answers   CTS,


Name three component subclasses that support painting?

0 Answers  






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

0 Answers  


What if the static modifier is removed from the signature of the main method?

0 Answers  


What are the oops concept?

0 Answers  


Can I have an action without a form?

0 Answers  


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


What is meant by Superconductivity?

4 Answers  


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

0 Answers   SAP Labs, TCS,


Categories