Can we pass null as argument in java?



Can we pass null as argument in java?..

Answer / Ashawni Gautam

Yes, you can pass null as an argument to a method in Java. However, it's important to ensure that the called method is capable of handling null arguments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is dynamic dispatch in java?

4 Answers  


What is the difference between yield() and sleep()?

1 Answers  


What is the difference between compiler and jvm?

1 Answers  


Explain the difference between the public, private, final, protected, and default modifiers?

1 Answers  


Can we sort a map in java?

1 Answers  


Difference between current previous versions of Java?

1 Answers   Atos Origin,


What is are packages?

1 Answers  


Does java return by reference?

1 Answers  


Is 0 an even number?

1 Answers  


Can we have a abstract class withought any method? What is a purspose of this?

3 Answers  


Why main function is static?

1 Answers   MCN Solutions,


What’s the difference between callable and runnable?

1 Answers  


Categories