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

Name the eight primitive java types.

1122


whats is mean by connectionpooling

2008


What are the sequence of steps to write pub or sub model kind of application?

2515


Define aop(assepct oriented programing)?

1164


What do you know about seam?

1044


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

1075


What is metaspace?

1025


Why do I get a duplicate name error when loading a jar file?

1137


Which javutil classes and interfaces support event handling?

1039


How substring() method of string class create memory leaks?

1042


which book is better for jdbc ,servlets and jsp

2099


what is the use of State Factories?

2384


What is the highest-level event class of the event-delegation model?

1091


How will you pass parameters in RMI? Why do you serialize?

1229


Is infobus easy to use?

1036