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


Please Help Members By Posting Answers For Below Questions

design an lru cache in java?

730


How can we create objects if we make the constructor private ?

734


What is meant by string is immutable?

720


When do we use synchronized blocks and advantages of using synchronized blocks?

873


Can we access the non-final local variable, inside the local inner class?

750


What is argument in java?

748


What is the meaning of I ++ in java?

836


What is the difference between jvm and jre? What is an interface?

767


Name four container classes.

737


What is string args [] in java?

753


What is an array in java?

856


Java is Pass by Value or Pass by Reference?

796


Why stringbuilder is not thread safe in java?

778


What is your platform?s default character encoding and how to know this?

1996


What is a boolean in java?

755