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 / 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 |
Post New Answer View All Answers
What is the purpose of the wait(), notify(), and notifyall() methods?
What is a policy?
Will the general public have access to the infobus apis?
What do you need to set-up a cluster with jboss?
What is threadfactory?
Why does the option tag render selected=selected instead of just selected?
Define the remote object implementation?
What are the different methods of identifying an object?
When is the best time to validate input?
Are we allowed to change the transaction isolation property in middle of a transaction?
Write a program to show synchronization?
Difference between DurableSubscription and non- DurableSubscription?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What event results from the clicking of a button?