java - NullPointerException and NullReferenceException -


what difference between nullpointerexception , nullreferenceexception?

nullpointerexception - java exception thrown when application attempts use null in case object required.

nullreferenceexception - exception thrown when there attempt reference (or use) null or uninitialized object.

there no 'nullreferenceexception' in java. java has equivalent class 'nullpointerexception'.


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -