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);
}
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Difference between hashmap and hashtable?
In real time project when will we use Abstract class. and what are the difference between abstract and interface.
6 Answers DELL, FCS, Polaris, Tanla Solutions, TCS,
whats is mean by tiles in struts
what is the difference between System.out.println and out.println in java
Name three component subclasses that support painting?
What restrictions are placed on the values of each case of a switch statement?
What if the static modifier is removed from the signature of the main method?
What are the oops concept?
Can I have an action without a form?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What is meant by Superconductivity?
how to use debug in my elipse to solve problems that exist in my project