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
What is build file?
What do you understand by connector?
Is java an assembly language?
What is initialization parameter?
Which software is used for java?
What is application client?
How many types of modules is defined by j2ee specification?
What is jaxr provider?
What is client-certificate authentication?
What is the use of method saveorupdate()?
Is c++ more secure than java?
What is empty tag?
What is DDP?
Define thin client?
What is enterprise information system?