In which way does a Primitive data type is passed ?
Answers were Sorted based on User's Feedback
Answer / harsha
Primitive data types are 'passed by value'.
|Is This Answer Correct ?||8 Yes||1 No|
Answer / sandeep
Primitive data type are passed using wrapper classes. This
class provide us an object view of primitive types.
Integer i=new Integer(3);
|Is This Answer Correct ?||5 Yes||1 No|
Answer / subha narayan mohapatra
all Primitive data types are passed by value.
|Is This Answer Correct ?||3 Yes||0 No|
Answer / sailendra.n.jena
primitive datatype are pass this way
void disp(int z)
public static void main(String args)
A a=new A();
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|
What is memory leak and how does java handle it?
How many types of modifiers are there?
why would you use a synchronized block vs. Synchronized method? : Java thread
What does the @override annotation do?
What do you mean by platform independence?
What is a class variable?
Difference between concurrent hashmap and hashtable and collections
aabccdee Find the used alphabets as abcde ?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is google full form?
if num=687; U have to get num=6+8+7;
Can an object be null?