is java support call by reference and call by value, if
supports please explain?

Answer Posted / renjit mathew

ya java support both.In java when u pass a single type to a
method it passes by value.


Call By Reference:-In java objects are passed by
reference.when you create a variable of a class type,you are
only creating a reference to an object.when you pass this
object to a method the parameter that receives it will refer
to the same object as that refered by the argument

Is This Answer Correct ?    9 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a char in java?

760


What is the difference between and ?

708


What is the default size of arraylist in java?

747


how would you implement a thread pool? : Java thread

706


What are the four corner stones of oop?

797


Can a constructor have different name than a class name in java?

845


Can a class extend more than one class?

867


Which collections are thread safe in java?

714


How many threads does a core java have?

797


What is java Applet?

840


What is string and example?

794


What is java thread dump, how can we get java thread dump of a program?

791


What are thread safe functions?

730


how its run?

822


Where is java located?

751