Java is based on pass by reference or pass by value ..
Answer Posted / dheeraj pareek
Java is purely based on "Pass-by-value".
Variables are passed by value, and in case of Object, object reference is passed by value.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why spring singleton is not thread safe?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What about interrupt() method of thread class ?
what is meant by Garbage collection?
What is comparable and comparator interface? List their differences
What are the important features of Java 11 release?
How to convert string to char and vice versa?
What are the two types of java?
What is the common usage of serialization? What exceptions occur during serialization?
Can abstract class have private constructor?
Explain different forms of polymorphism?
What is the difference between compare and compareto in java?
How do you initialize an arraylist in java?
Explain the access modifiers for a class, method and variables?
What is data string?