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

To identify IDL language what mapping mechanism is used?

3984


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2250


Can constructors be synchronized in java?

1176


Why use a datasource when you can directly specify a connection details?

1085


Is there a guarantee of uniqueness for entity beans?

1059


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

1159


What modifiers may be used with an inner class that is a member of an outer class?

1117


What are the difference between RMI and CORBA?

1171


Define aop(assepct oriented programing)?

1251


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1086


What is mdb and what is the special feature of that?

1107


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

1128


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

1211


What must a class do to implement an interface?

1282


Explain what is orm?

1155