Java is based on pass by reference or pass by value ..

Answer Posted / venkatesh

Java supports both Pass By Value and Pass By Reference
Pass By Value: In Java method pass value , changed value is
visible within a method, it will not effect outside of the
method

Pass By Reference: Pass Java Object in method , changed
value will be available outside of method also.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four versions of java?

547


How do you create a null object?

512


What are the types of inner classes (non-static nested class) used in java?

567


Is 0 an even number?

551


Define array. Tell me about 2-D array.

589






What is difference between identifier and variable?

477


What are the 6 boolean operators?

553


Is vector synchronized in java?

557


How to create an immutable class?

573


What is difference between java and java ee?

557


Implement two stacks using a single array.

575


Why is stringbuffer called mutable?

567


What environment variables are required to be set on a machine in order to run Java programs?

618


How to reverse string in java?

617


What do you mean by multithreaded program?

554