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

There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?

9 Answers   KPIT,


what is deadlock? : Java thread

0 Answers  


Program to output as below formate: 1 2 3 4 5 6 7 8 9 10

4 Answers   Huawei,


What is the difference between compare and compareto in java?

0 Answers  


What is fail fast in java?

0 Answers  






What is the use of beaninfo?

0 Answers  


How do you replace a string in java?

0 Answers  


Why are inner classes required?

3 Answers   Oracle,


What are the concepts of 'OOPS'?

0 Answers   Atos Origin,


what is difference between signed & unsigned char?

2 Answers  


Can we declare an anonymous class as both extending a class and implementing an interface?

8 Answers   College School Exams Tests, JVA, TCS, Wipro,


What is the statements?

0 Answers  


Categories