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
What does it mean that a method or field is “static”?
Can we clone singleton object in java?
State the merge-sort principle and its time complexity.
Explain the difference between hashmap and hashtable in java?
define the terminology association.
When do I need to use reflection feature in java?
What occurs when an object is constructed?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Tell me about your ability to work under pressure
Explain about the interpreter in java?
What are structs in java?
what is difference betweem home interface and remote interface?
What is the use of volatile in java?
What is the significance of java packages?
What are desktop procedures?