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
Can we write any code after throw statement?
Write a program to solve producer consumer problem in java?
Can we override singleton class?
What is static synchronization?
what are the high-level thread states? : Java thread
Why bytecode is called bytecode?
What is the difference between the prefix and postfix forms of the ++ operator?
Give the hierarchy of inputstream and outputstream classes.
What is meant by main method?
What about method local inner classes or local inner classes in java?
What do you mean by exception handling in Java?
What is diamond operator in java?
Is java a compiler?
How do you insert a line break?
Explain the protected field modifier?