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
What is queue in java?
What is the base class of all exception classes?
What is considered an anti pattern?
What is comparable and comparator interface? List their differences
How to create an interface?
Can we write class inside a class in java?
Can an interface implement another interface?
Why stringbuilder is not thread safe?
What is meant by design patterns?
What is the default access specifier for variables and methods of a class?
How hashmap works in java?
How to sort an unsorted array in java?
What is flag in java?
What is string data type?
Can java list contain duplicates?