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 / guest
/.kt
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between DurableSubscription and non- DurableSubscription?
When a thread blocks on i/o?
Are enterprise beans allowed to use thread.sleep()?
Which textcomponent method is used to set a textcomponent to the read-only state?
Should synchronization primitives be used on bean methods?
To identify IDL language what mapping mechanism is used?
How can I scroll through list of pages like the search results in google?
Difference between loadclass and class.forname?
What is a modular application?
What restrictions are placed on the values of each case of a switch statement?
Do I need to import javlang package any time? Why ?
Do we need to override service() method
What is the difference between static and non-static with examples?
What method is invoked to cause an object to begin executing as a separate thread?
Write a program to show synchronization?