Java support what type of parameter passing ?

Answers were Sorted based on User's Feedback



Java support what type of parameter passing ?..

Answer / srikanth

Java supports always call-by-value.

Is This Answer Correct ?    20 Yes 1 No

Java support what type of parameter passing ?..

Answer / pranab dutta

passed by value

Is This Answer Correct ?    14 Yes 2 No

Java support what type of parameter passing ?..

Answer / johnjot

call by value only..when objects are passing as args, then
the reference is passed in by value..

Is This Answer Correct ?    9 Yes 1 No

Java support what type of parameter passing ?..

Answer / chandrarekha

all the primitive or the simple datatypes(int,float,boolean
etc) are passed as call by value whereas the abstract
datatypes(class objects) are by call by reference.....
for example...
class classA
{
String name;
}
class classB
{
classA a=new classA();
a.name="java";
call(a);//a is an object of classA
void call(classA x)
{
x.name="JAVA";
}
public static void main()
{
......

this is call by reference...

Is This Answer Correct ?    9 Yes 2 No

Java support what type of parameter passing ?..

Answer / devarathnam c,kotagudibanda(po

Hi... By default java supports "pass by value" in case of
primitive datatypes.
In case of objects it supports "pass by references"

Is This Answer Correct ?    8 Yes 4 No

Java support what type of parameter passing ?..

Answer / rajkumar ksr college

It would
support const parameters like C++.
For instance:

Is This Answer Correct ?    3 Yes 1 No

Java support what type of parameter passing ?..

Answer / eesha

Please refer to:
http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

0 Answers  


Why javac is not recognized?

0 Answers  


Differentiate between nested and inner class in java.

0 Answers   Akamai Technologies,


What invokes a thread's run() method in java programming?

0 Answers  


why the constructor should be used in class,if there is no constructor what will happen?

4 Answers  






What is use of map in java?

0 Answers  


they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }

2 Answers   DNS, IPSR Solutions,


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


What is a boolean structure?

0 Answers  


Difference between JDK, JRE, JVM

16 Answers   Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,


What is compareto?

0 Answers  


why java does not support unsigned keyword?

1 Answers  


Categories