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
Can we sent objects using Sockets?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
whats is mean by tiles in struts
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is the purpose of the wait() method?
When is the best time to validate input?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is the immediate superclass of the applet class?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
Difference between new operator and class.forname().newinstance()?
How are the elements of a cardlayout organized?
What restrictions are placed on the values of each case of a switch statement?
What is the difference between a menuitem and a checkboxmenuitem?
Is “abc” a primitive value?
What class is the top of the awt event hierarchy?