Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is sorting in java?

0 Answers  


What is tree in java?

0 Answers  


What is the current version of java?

0 Answers  


Difference between throw and throws?

0 Answers  


What will happen when using pass by reference in java?

0 Answers   HCL,






Differentiate between class and structure.

0 Answers   Amdocs, Motorola,


Explain the difference between string, stringbuffer and stringbuilder in java?

0 Answers  


What is the biggest integer?

0 Answers  


What is super keyword in java ?

1 Answers  


What is the advantage of functional interface in java 8?

0 Answers  


How long will it take to learn java?

0 Answers  


Why can't we make jsp as a controller and action servlet in struts?

8 Answers   TCS, Wipro,






Categories