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

Answer Posted / arun

Java is actually pass-by-value for all variables running
within a single
VM. Pass-by-value means pass-by-variable-value. And that
means, pass-by-copy-of-
the-variable!

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is super?

799


How is abstraction implemented in java ?

731


How to create an interface?

847


What is use of super keyword?

757


What are local variables?

821


What are the restriction imposed on a static method or a static block of code?

821


How transient variable is different from volatile variable?

782


Explain the difference between call by refrence and call by value?

799


What is split return?

695


List primitive java types?

798


Can we define private and protected modifiers for variables in interfaces?

834


What is scanner in java?

744


How to declare objects of a class ?

827


What access modifiers can be used for class ?

781


What is the difference between logical data independence and physical data independence?

797