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 e in java?

730


Explain the difference between hashmap and hashtable in java?

708


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

752


What is a double?

819


How is final different from finally and finalize?

681


Are true and false keywords?

790


What is the size of an array?

771


Whats the difference between notify() and notifyall()?

790


What is the maximum size of a string in java?

749


What do you understand by abstract classes?

826


Why do we need singleton class?

736


What is implicit object in java?

807


Does string is thread-safe in java?

800


What is hashset in java?

773


What is indexof?

730