Skip to main content

Game of NullPointerException






You will not be unbeknownst to this famous term in programming called the NullPointerException, if you are anyway related to this coding environment.
Yes it is very annoying when it occurs but don’t you feel it is the most fun exception to resolve.
Let’s see how Developers deal with it:

*) Introduction to NullPointerException:




For those who don’t know what it is:

NullPointerException is thrown when an application attempts to use an object reference that has the null value.

In Layman’s Term…

If you try to call a person who has headphones on his/her head, most probably he/she will not able to listen you and that is my friend is NullPointerException for you.

For those who know about it:

They are still facing the exception day in and day out. They don’t need any definition or answer.

*) Good/Bad things about NPException:




Having some good points in an Exception in Java is also an exception.
The good part about the NullPointerException is that it is easily detectable and resolvable whether you are experienced or novice. Without taking much of your time, it will easily come under the vigilance of developer like taking toffee from kid’s hands.
But as obvious the bad thing about this exception is that it will occur whether or not you have done anything special to avoid it.

*) To Resolve the exception:




For resolving the issue/exception, you don’t have to become an exception in this case, just go to the line indicated in the error log and find/initialize the variable which is giving null reference.

The NullPointerException is not just a word or exception, it’s an emotion which helps developer to keep doing the good work while resolving the null reference things.

So next time when you see the NullPointerException, do not worry and keep your calm because :

“ No Exception is bigger than you, yourself!!! “
Kudossss to the world of exceptions…


Comments

Popular posts from this blog

Let’s keep it short….again

Let’s keep it short….again The world is full of people who are full of Fear of Failure which doesn’t allow them to move steadily and think positively. But many of them don’t know that Fear is a Big Liar. Because Fear shows you fake reality about your own self that — ”You can’t do this thing”. Instead people should fake their fear by repeatedly saying this — ”At least I can try!!!” Because there is no sense at all to not do the particular thing just because you have never done it earlier. Try Again…Fail Again…Fail Better!!!😎 Kudossss To Fearless You…

Grateful 24/7/365

Grateful 24/7/365 The super basic problem with most of us is that we are not  grateful  for the life we all are living in currently. And the super duper solution for all of our this problem is to be  grateful enough for the life that we all got. Now to do that we can follow this simple phenomenon called -  Attitude of Gratitude. Many of us don’t even know How to be Grateful? So the best answer for this is: Becoming grateful and thankful for the smallest of things in your life is the best way to achieve the  Attitude of Gratitude. What to do with so much of Attitude of Gratitude? Many people even ask this silly but interesting question - that what we will get in return or what is the outcome of showing so much  gratefulness . So the best and interesting answer for this is: Keep yourself busy and focussed on your  attitude of gratitude , which will eventually make way for disappointments ...

That Winning Moment!!!

That Winning Moment!!! You are just a thought away from the fact that the penultimate thing we all want in our career is that winning moment and the motivation to carry that winning momentum all through outside and inside our career span. Let’s take a sneak peek of what can be some of the greatest winning moments. * That Bird who assembles the Nest: Have you ever thought about that little bird who is continuously collecting those tiny little wooden sticks to assemble or make home for her young ones to keep there and feed there. How great that  moment  will be for that bird, when she place that final wood stick on her assembled nest to finish that small yet hardworking activity. The bird can die for that type of winning moment!!! * That college boy who got placed in an interview: Everyone of you have definitely been through that phase of your graduation or school-life where you got selected for sitting in ...