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

I want to persist data of objects for later use. What’s the best approach to do so?

497


Is java programming easy?

529


What Is Query Throttling in java?

551


Is minecraft 1.15 out?

540


How does list work in java?

497






Which is better list or arraylist in java?

485


How do you sort a string in java?

529


What is the declaration statement?

500


Explain what is Marker interface?

602


What are the 5 types of research methods?

577


What is lexicographically smallest string?

588


How do generics work?

509


What is fundamental datatype?

518


What are different types of control structures?

481


What is void class in java?

515