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
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 an abstract method?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What is the difference between the session.get() method and the session.load() method?
Explain bind(), rebind(), unbind() and lookup() methods?
Why is main purpose of XML?
list the types of dialodg
How to pass parameters in RMI?
What is chat area? Explain.
Can I use javascript to submit a form?
how the mapping can be done from jsp to actionservlet?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is RMI and what are the services in RMI?