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
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is derived datatype?
What is JVM and is it platform independent?
what is the significance of listiterator in java?
Explain the selection sort algorithm and state its time complexity?
Which is better 64 bit or 32 bit?
What is a nonetype?
What is the destroy method?
What is tcp and udp?
What are checked exceptions?
How big is a boolean?
Explain the inheritance?
What is anagram number?
What classes of exceptions may be caught by a catch clause in java programming?
What is the difference between an inner class and a sub-class?