Java is based on pass by reference or pass by value ..
Answer Posted / arun
Java is actually pass-by-value for all variables running
within a single
VM. Pass-by-value means pass-by-variable-value. And that
means, pass-by-copy-of-
the-variable!
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is string in java is it a data type?
How can you share data between two thread in Java?
Explain about procedural programming language or structured programming language and its features?
When do you call copy constructor?
What is sortedmap in java?
How many unicode characters are there?
Can you create an object of an abstract class?
Can a constructor be made final?
Explain wait(), notify() and notifyall() methods of object class ?
What are the changes in java.io in java 8 ?
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. (
Explain the scope of a variable.
Can you sort a list in java?
What is javac_g?
What is finally in Java?