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 |
How messaging services are done, before release of JMS?
How do you set security in applets?
What is the use of Class.forName
diff vector arraylist
What are the types of data passing mechanisams under JMS specification?
What is local interface. How values will be passed?
What is the main functionality of RRL(Remote Reference Layer)?
What classes of exceptions may be caught by a catch clause?
what is difference between object state and behaviour?
What is multi-tasking? Types?
whats is mean by filter?
What is thread deadlock? How to resolve thread deadlock?