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

How objects are stored in java?

538


what is abstract class in Java?

634


Is null false in java?

692


What is multithreading and its advantages?

558


What is the purpose of extern variable?

520






How does queue work in java?

517


What is the difference between the ">>" and " >>>" operators in java?

493


What is a nested class?

576


Does java support multiple inheritance or not?

589


Tell me are there implementations for sorting and searching in the java libarary?

582


Write a function to find out longest palindrome in a given string?

582


How do I get a substring?

515


How many bytes is 255 characters?

539


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

542


What is a programming object?

540