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 difference between RMI and Corba?
Can we sent objects using Sockets?
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?
How task's priority is used in scheduling?
How database connectivity in XML is achieved?
What is the difference between the session.get() method and the session.load() method?
What is the difference between the font and fontmetrics classes?
What is a modular application?
What is RMI and what are the services in RMI?
What is the difference between the string and stringbuffer classes?
whats is mean by tiles in struts
Difference between DurableSubscription and non- DurableSubscription?
What are the call back methods in entity bean?
What modifiers may be used with an inner class that is a member of an outer class?
What is the difference between system.out ,system.err and system.in?