Explain pass by reference and pass by value?

Answer Posted / aravind

Pass By Reference:
Passing the reference of the variable or object. In java
objects are passed by reference.

Pass By Value:
Passing the copy of the value. In java primitives are
passed by value.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java support multiple inheritance or not?

609


What modifiers may be used with a top-level class?

580


What are the drawbacks of singleton class?

546


What is the functionability stubs and skeletons?

698


What is the Concept of Encapsulation in OOPS

563






Can we create a constructor in abstract class?

575


What isan abstract class and when do you use it?

861


Variables used in a switch statement can be used with which datatypes?

525


What is a protected method?

600


How do you create a null object?

520


What do you mean by hashing?

649


Which is faster set or list in java?

538


What is difference between pointer and reference?

512


What is a java string?

549


What is parseint?

542