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);
}
}

Answers were Sorted based on User's Feedback



What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-..

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

What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-..

Answer / guest

/.kt

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

When a thread terminates its processing, it enters into what state?

1 Answers  


How to determine applet?s height and width?

1 Answers  


Write a program on RMI and JDBC using StoredProcedure?

1 Answers  


What is difference RMI registry and OSAgent?

1 Answers  


What is threadfactory?

0 Answers  


How can a dead thread be restarted?

1 Answers   IBM, Wipro,


What is the initial state, When a thread is created and started?

3 Answers  


What exceptions are thrown by RMI?

1 Answers  


what is difference between checked exception & unchecked exception in java?

3 Answers   Ness Technologies,


what are JSP tags? what is difference between include action and directory?

0 Answers   ADP,


How database connectivity in XML is achieved?

0 Answers  


Have you used threads in Servelet?

0 Answers   Satyam,


Categories