In which way does a Primitive data type is passed ?
Answer Posted / 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 |
Post New Answer View All Answers
design an lru cache in java?
How can we create objects if we make the constructor private ?
What is meant by string is immutable?
When do we use synchronized blocks and advantages of using synchronized blocks?
Can we access the non-final local variable, inside the local inner class?
What is argument in java?
What is the meaning of I ++ in java?
What is the difference between jvm and jre? What is an interface?
Name four container classes.
What is string args [] in java?
What is an array in java?
Java is Pass by Value or Pass by Reference?
Why stringbuilder is not thread safe in java?
What is your platform?s default character encoding and how to know this?
What is a boolean in java?