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

Does Java pass arguments by value or reference?

Answer Posted / prs01

Pass by value.
1. When passing primitives, it passes a copy of the
variable to the method. Any change made in the method does
not reflect in the calling method.
2. When dealing with objects, a copy of their
reference/address is passed. Thus the change made to the
object is reflected in the calling method.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are commas used in the intialization and iteration parts of a for statement?

1061


Why doesn’t the focus feature on the tag work in every circumstance?

1049


What are the benefits of detached objects?

1017


Define aop(assepct oriented programing)?

1128


What is a modular application?

1020


Can you give me a simple example of using the requiredif validator rule?

1073


why static class in java

1733


What’s jboss cache in short?

1066


whats is statement and procedure

2145


How messaging services are done, before release of JMS?

2090


Is there a guarantee of uniqueness for entity beans?

971


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

2180


Explain RMI Architecture?

1047


Why is string immutable in java?

1065


For which statements does it make sense to use a label?

1033