Java is based on pass by reference or pass by value ..

Answer Posted / sanket mehta

Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers n java does not support pointers and it is because pointers breaks the security. Java is always pass-by-value. Pass by reference in java means the passing the address itself

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a string literal?

724


How would you use Bubble Sort to sort the number of elements?

815


What is a vector in java?

785


placement papaers of spring computing technology

1195


what is the difference between preemptive scheduling and time slicing? : Java thread

763


Why do we use string?

779


Can java hashmap have duplicate keys?

708


How do you write a scanner class in java?

770


Can we have return statement in finally clause? What will happen?

736


Explain the difference between static and dynamic binding in java?

809


Is a class an object?

778


What is assembly used for?

767


Can a constructor call the constructor of parent class?

784


Which is faster call by value or call by reference?

706


What is xslt in java?

729