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

What is internal variable?

0 Answers  


all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.

4 Answers  


What are alternatives to java serialization?

0 Answers  


Can multiple catch statements be used in exceptions ?

6 Answers   Wipro,


What are the java ide’s?

0 Answers  






Who developed java?

0 Answers  


Howmany classes that package java.applet.* contains?

1 Answers   TCS,


Can you explain the cs option of java interpreter?

0 Answers  


What is the difference between char and char *?

0 Answers  


what is inner class?

6 Answers   HCL,


what are the disadvantages of indexes in oracle?

0 Answers   3i Infotech, Wells Fargo,


How many types of java are there?

0 Answers  


Categories