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
What are various types of class loaders used by jvm?
For which statements does it make sense to use a label?
how do you Handle Front End Application data against DB with example?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What is the argument type of a programs main() method?
what are RemoteObjects?
what are memory considerations of jsp compares to other web components?
Why a client should be multithreading? Explain.
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?
What is scalable, portability in the view of J2EE?
Why won’t the jvm terminate when I close all the application windows?
Java is fully object oriented languages or not?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
the same information whether it will connect to the database or it will be used previous information?
Can I run seam outside of jboss as?