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
What is difference between final and finally in java?
Why java is call by value?
Do you know how to reverse string in java?
What is %02d?
What is Java Shutdown Hook?
Does unicode support all languages?
What are pass by reference and pass by value?
Write a factorial program using recursion in java?
What is called module?
What are keywords and reserved words in java?
What is ellipsis in java?
Which arithmetic operations can result in the throwing of an arithmeticexception?
What environment variables do I need to set on my machine in order to be able to run java programs?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What are triggers in DB? Explain their types. How do they work?