Readit

Tuesday, 28 June 2016

Java doesn't support pointers. Why does java throw "NullPointerException"?

Java doesn't have pointers, but it does have reference to objects, which have memory allocated to them in heap.

A reference type has default value of null whenever a method is invoked as that returns NullPointerException is thrown as a results.

Posted by Unknown at 09:28
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2016 (22)
    • ►  October (2)
    • ►  July (1)
    • ▼  June (14)
      • Difference between path and classpath in java
      • Medicine For Blood cancer
      • Most Inspirational Story of KFC
      • Jobs for fresher
      • Best Life Tips
      • Job Mela / fair MIT Engineering College Mysore
      • Amazon India Jobs
      • Wipro opening for freshers
      • Java doesn't support pointers. Why does java throw...
      • Naming convention for java programmer
      • Difference between class,interface and enum
      • Python In A Hour
      • Oracle Introduction
      • Java Is Object Oriented Programming Language
    • ►  February (5)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.