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
Define prototype?
What is the relationship between the canvas class and the graphics class?
What do you know about seam?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What is abstract schema?
wahts is mean by dynavalidatorform in struts/
Which container method is used to cause a container to be laid out and redisplayed?
Is the session factory thread safe?
Explain what is synchronization?
What does module-relative mean?
What are various types of class loaders used by jvm?
Explain the difference between object state and behavior?
What is jboss?
What are the pros and cons of detached objects?
Write a singleton program?