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

what is a Daemon Thread?

2 Answers  


how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)

1 Answers   TCS,


i want documentation of text file splitter & merger of advanced java

1 Answers   Infosys,


To make an object to begin executing as a separate thread, what method is used?

2 Answers  


Explain the purposes of methods wait(), notify(), notifyAll ()?

2 Answers  


difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


How do you download stubs from a Remote place?

1 Answers  


What is private static final long serialVersionUID = 1L;

3 Answers   Google,


what is meant by JRMP?

0 Answers  


What is permgen or permanent generation?

0 Answers  


how to get value in combo for updation?

1 Answers   CMC,


what's the main difference between unix os and linux os?

2 Answers   TCS,


Categories