In which way does a Primitive data type is passed ?

Answers were Sorted based on User's Feedback



In which way does a Primitive data type is passed ?..

Answer / harsha

Primitive data types are 'passed by value'.

Is This Answer Correct ?    8 Yes 1 No

In which way does a Primitive data type is passed ?..

Answer / sandeep

Primitive data type are passed using wrapper classes. This
class provide us an object view of primitive types.
e.x.
Integer i=new Integer(3);

Is This Answer Correct ?    6 Yes 1 No

In which way does a Primitive data type is passed ?..

Answer / subha narayan mohapatra

all Primitive data types are passed by value.

Is This Answer Correct ?    3 Yes 0 No

In which way does a Primitive data type is passed ?..

Answer / sailendra.n.jena

primitive datatype are pass this way
class A
{
int x=7;
void disp(int z)
{
System.out.println(z);
}
}
class Test
{
public static void main(String args[])
{
int x=7;
A a=new A();
a.disp(x);
}
when u pass the primtive reference to this method only
address will transfer to the parameter which i have given
to the void disp(int z).After passing the reference
variable the other variable will pointing to that object &
collect the value of that object.

Is This Answer Correct ?    1 Yes 0 No

In which way does a Primitive data type is passed ?..

Answer / ismail

Primitive data types will passed be "Pass by Value"...!!!

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

When is the arraystoreexception thrown?

0 Answers  


Is 0 true or false in java?

0 Answers  


What is the symbol for average?

0 Answers  


Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.

2 Answers   Accenture,


Explain notifyall() method of object class ?

0 Answers  






Define how can we find the actual size of an object on the heap?

0 Answers  


How to send a request to garbage collector?

4 Answers  


What are parent methods and how can you call them?

2 Answers  


Explain the difference between arraylist and linkedlist in java?

0 Answers  


What are dot operator queries?

0 Answers   Atos Origin,


What is hashmap and map?

0 Answers  


when there is a need of jvm then how we can say that java is a platform independent language?

3 Answers  


Categories