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

c# SetCompatibleTextRenderingDefault must be called before the first -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -