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

how its run?

0 Answers  


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

0 Answers   Ciena,


Explain java coding standards for classes or java coding conventions for classes?

0 Answers  


What is difference between static and abstract class?

0 Answers  


How does predicate work in java?

0 Answers  






What is return code?

0 Answers  


How to print a statement without using semicolan in java

6 Answers   HCL, IBM,


How do you stop a thread in java?

0 Answers  


Iterator in the HashMap is fail-safe means what?

9 Answers   CTS, IBM, Subex,


Objects or references which of them gets garbage collected?

0 Answers  


Why java does not supports multiple inheritance?

3 Answers   TCS, VSoft,


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

0 Answers   Manhattan,


Categories