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 is the difference between future and callable interface in java?

887


5 Coding best practices you learned in java?

834


What is a default constraint?

833


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

916


What is the applet security manager, and what does it provide?

778


What is the difference between access specifiers and access modifiers in java? 16

767


Can we have any other return type than void for main method?

761


Explain the importance of finally over return statement?

834


Can a method be static?

745


What is meant by singleton class?

810


What is the difference between == and === javascript?

821


What is compareto?

755


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

829


Difference between overriding and overloading in java?

837


How to compare two strings in java program?

849