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

Answers were Sorted based on User's Feedback



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

Answer / eyal roth

Pass by value.

Is This Answer Correct ?    15 Yes 4 No

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

Answer / venkatesh

Java supports both Pass By Value and Pass By Reference
Pass By Value: In Java method pass value , changed value is
visible within a method, it will not effect outside of the
method

Pass By Reference: Pass Java Object in method , changed
value will be available outside of method also.

Is This Answer Correct ?    9 Yes 5 No

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

Answer / 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

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

Answer / 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

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

Answer / 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

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

Answer / guest

by reference.

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More Core Java Interview Questions

In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?

2 Answers  


What is join () in java?

0 Answers  


Is nan false?

0 Answers  


What are inner classes or non static nested classes in java?

0 Answers  


How do you download stubs from Remote place?

0 Answers  


How define set in java?

0 Answers  


What is difference between array and arraylist in java?

0 Answers  


Is java hard to learn?

0 Answers  


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

0 Answers  


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

0 Answers  


Can we increase size of array?

0 Answers  


Explain creating threads by implementing runnable class?

0 Answers  


Categories