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 |
Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");
How to do registration form using struts and hibernate?
What is metaspace?
difference between apllet and interface class
How are commas used in the intialization and iteration parts of a for statement?
how i secure my site with the https protocol.what are the steps?
Why won’t the jvm terminate when I close all the application windows?
When you will synchronize your code?
What are synchronized methods and synchronized statements?
What is the difference between system.out ,system.err and system.in?
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?
Describe activation process?