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 |
What is dynamic dispatch in java?
What is the difference between yield() and sleep()?
What is the difference between compiler and jvm?
Explain the difference between the public, private, final, protected, and default modifiers?
Can we sort a map in java?
Difference between current previous versions of Java?
What is are packages?
Does java return by reference?
Is 0 an even number?
Can we have a abstract class withought any method? What is a purspose of this?
Why main function is static?
What’s the difference between callable and runnable?