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
what is the difference between future and callable interface in java?
5 Coding best practices you learned in java?
What is a default constraint?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is the applet security manager, and what does it provide?
What is the difference between access specifiers and access modifiers in java? 16
Can we have any other return type than void for main method?
Explain the importance of finally over return statement?
Can a method be static?
What is meant by singleton class?
What is the difference between == and === javascript?
What is compareto?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
Difference between overriding and overloading in java?
How to compare two strings in java program?