Explain pass by reference and pass by value?

Answer Posted / harsha

Passing the address itself rather than passing the value is
called ?Pass By Reference? and Passing a copy of the value
to be passed is called as ?Pass by Value?.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why stringbuffer is faster than string?

525


What is type safety in java?

478


How does class forname work in java?

470


List the different types of classloaders in java.

494


What is the difference between a loader and a compiler?

516






What do you mean Abstraction in java?

594


What are the benefits of java?

560


What is field name?

578


What is a literal coding?

500


What is the inheritance?

538


What is the purpose of using javap?

600


When can we say that threads are not lightweight process in java?

584


What is the default value of byte datatype in java?

466


How do you read a char in java?

447


If we don’t want some of the fields not to serialize how to do that?

552