Whats the O/p of the below code snippet ? And explain how does it imply the concept of call-by-value/call-by reference. (PS : Pls ignore syntax errors)
public class One {
public oneA(){
sop ("Into One--");}
}
public class Two extends One{
public twoT(){
sop ("Into Two--"); }
}
public class Home {
One a; Two t;
public static void main(argv[])
{
sop ("In Home--");
sop(a.oneA());
sop(t.oneA());
sop(a.twoT());
sop(t.twoT());
}
}
Answer Posted / guest
sorry it ll not give any output as tthere is no object has
been created to call methods of super class
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is java considered dynamic?
What is server in j2ee?
Why is j2ee needed?
What is bean factory, have you used xmlbean factory?
Is j2ee a programming language?
What software is needed for java programming?
when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?
How do I become a java developer?
What is the difference between java and core java?
Define authorization constraint?
What is declaration?
How do you compile java?
What is the preferred size of a component in java?
What is a j2ee container?
What is create method?