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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we sent objects using Sockets?

1146


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?

2422


whats is mean by tiles in struts

2227


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4275


What is the purpose of the wait() method?

1201


When is the best time to validate input?

1105


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

1159


What is the immediate superclass of the applet class?

1088


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3007


Difference between new operator and class.forname().newinstance()?

1135


How are the elements of a cardlayout organized?

1085


What restrictions are placed on the values of each case of a switch statement?

1020


What is the difference between a menuitem and a checkboxmenuitem?

1116


Is “abc” a primitive value?

1111


What class is the top of the awt event hierarchy?

1113