Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / guest

/.kt

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about seam?

1034


Explain the different types of memory used by jvm?

1138


What is the difference between RMI and Corba?

2731


What are the steps to write p-to-p model application?

2464


What is a class loader? What are the different class loaders used by jvm?

1090


Why are component architectures useful?

1053


Explain the advantages and disadvantages of detached objects.

1013


What are JTA/JTS and how they used by client?

2216


What is the difference between a static and a non-static inner class?

1135


What is synchronization and why is it important?

1095


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1144


Is the ternary operator written x : y ? Z or x ? Y : z ?

1092


What restrictions are placed on the location of a package statement within a source code file?

1106


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?

2410


Difference between swing and awt?

1264