is java support call by reference and call by value, if
supports please explain?
Answer Posted / renjit mathew
ya java support both.In java when u pass a single type to a
method it passes by value.
Call By Reference:-In java objects are passed by
reference.when you create a variable of a class type,you are
only creating a reference to an object.when you pass this
object to a method the parameter that receives it will refer
to the same object as that refered by the argument
Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
Explain differences between checked and unchecked exceptions in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Give the difference between the println method and sqrt method?
Can an unreferenced object be referenced again?
What is passing by reference in java?
Are arrays primitive data types?
Why do I need to declare the type of a variable in java?
How do you sort a string in java?
Is java se free?
What is immutable in java?
What are thread local variables?
Print Vertical traversal of a Binary Tree.
How many types of string data types are there?
What is void data type?
What is a type parameter in java?