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 the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is the lifecycle of an applet?
How substring() method of string class create memory leaks?
What is colon_pkg_prefixes and what is its use?
What is the priority of Garbage collector thread?
How task's priority is used in scheduling?
Which javutil classes and interfaces support event handling?
which book is better for jdbc ,servlets and jsp
Are there books about seam?
Why is string immutable in java?
When a thread terminates its processing, it enters into what state?
Thread life cycle?