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
To identify IDL language what mapping mechanism is used?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Can constructors be synchronized in java?
Why use a datasource when you can directly specify a connection details?
Is there a guarantee of uniqueness for entity beans?
What is a class loader? What are the different class loaders used by jvm?
What modifiers may be used with an inner class that is a member of an outer class?
What are the difference between RMI and CORBA?
Define aop(assepct oriented programing)?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is mdb and what is the special feature of that?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What is the difference between a static and a non-static inner class?
What must a class do to implement an interface?
Explain what is orm?