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

What are the 8 primitive data types in java?

776


what are the high-level thread states? : Java thread

787


What is api data?

782


Explain about varargs in java?

884


Name few java util classes introduced with java 8 ?

724


What is the final blank variable?

831


What restrictions are placed on method overloading?

896


What does || mean in vectors?

715


What are controls and their different types in awt?

847


What is the difference between declaration and definition in java?

758


What is a cup of java?

802


Which class is the superclass for every class in java programming?

786


Does java list allow null?

763


What is the difference between class forname and new?

791


How do you compare characters in java?

740