Is integer passed by reference in java?



Is integer passed by reference in java?..

Answer / Ankit Mohan Bhatnagar

In Java, primitive types like 'int' are passed by value. However, objects (classes) and arrays are passed by reference.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is static class

1 Answers   EDS,


What is a singleton in genetics?

1 Answers  


what is mean by synchronization?

3 Answers   BOB Technologies, GCPL,


What is sorting algorithm in java?

1 Answers  


Tell me about your ability to work under pressure

1 Answers   AXA,


What is the difference between dom and sax parser in java?

1 Answers  


Can we use both this () and super () in a constructor?

1 Answers  


What is logical variable?

1 Answers  


Is math class static in java?

1 Answers  


What are the override methods in Object class?

2 Answers   Tech Mahindra, Wipro,


Give the difference between the println method and sqrt method?

1 Answers  


What is contract between hashcode and equal method?

1 Answers  


Categories