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 downcasting?

555


Can we create an object of static class in java?

580


What is numeric data type?

514


What is substring 1 in java?

579


What is the difference between a scrollbar and a scrollpane?

544






Difference between keyword and identifier.

583


What is finalize() function in java?

543


What is the symbol for line break?

592


Explain about the dynamic behavior of core java?

620


How do you sort data in java?

503


How do you add an arraylist to an array in java?

494


What are the approaches that you will follow for making a program very efficient?

630


Is null a string in java?

546


What is the char data type?

507


What if static is removed from main method?

556