Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Francisca Perez   on Dec 02 In Java Category.

  
Question Answered By: Nagaraju Iyaner   on Dec 02

If surname has not been initialized it will be
null. You will experience a NullPointerException
whenever you try to call one of surname's methods in this
situation. <br><br>Test first for the null.<br>if (surname
!= null) {// do work  here}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on empty textfield value Or get search suggestion and latest updates.


Tagged: