Explain pass by reference and pass by value?
Answer Posted / harsha
Passing the address itself rather than passing the value is
called ?Pass By Reference? and Passing a copy of the value
to be passed is called as ?Pass by Value?.
Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
What is an abstract class and what is it’s purpose?
Can an interface have a constructor?
What are the types of exceptions?
Explain enumeration in java?
Can we make the abstract methods static in java?
How java uses the string and stringbuffer classes?
What is a singleton class in Java?
What is main string [] args?
What is the difference between jdk, jre, and jvm?
what is comparable and comparator interface?
What is a parameter used for?
Why do I need to declare the type of a variable in java?
Can we force the garbage collection to run?
Can a class have 2 constructors?
Is age a discrete variable?