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 dirty read?

1 Answers  


Can we have more than one action servlet?

7 Answers   HP,


Why doesn’t the focus feature on the tag work in every circumstance?

0 Answers  


Explain what is synchronization?

0 Answers  


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

0 Answers  






What is the main functionality of RRL(Remote Reference Layer)?

3 Answers  


Name three component subclasses that support painting?

0 Answers  


How do u supress the parameters from the displaying in the url?

2 Answers  


Explain the stub's and skeleton's functionality?

7 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


What is chat area? Explain.

0 Answers  


To identify IDL language what mapping mechanism is used?

0 Answers  


Categories