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


Please Help Members By Posting Answers For Below Questions

Why spring singleton is not thread safe?

570


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

684


What about interrupt() method of thread class ?

589


what is meant by Garbage collection?

622


What is comparable and comparator interface? List their differences

582






What are the important features of Java 11 release?

582


How to convert string to char and vice versa?

520


What are the two types of java?

520


What is the common usage of serialization? What exceptions occur during serialization?

606


Can abstract class have private constructor?

500


Explain different forms of polymorphism?

658


What is the difference between compare and compareto in java?

491


How do you initialize an arraylist in java?

513


Explain the access modifiers for a class, method and variables?

662


What is data string?

500