Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is nill?  RSS feed

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just want to know what is nill? is it the same as null? Thanks.
 
author
Sheriff
Posts: 23553
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Nelson Nadal:
Just want to know what is nill? is it the same as null? Thanks.



Can you give us some context? Where did you hear / see "nill" used?

Henry
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the part of the code from a book titled Web Development:Using Struts by instantCode

 
Bartender
Posts: 4047
48
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


if(category.equals("nill") && keyWord.length()<3)



here it uses String value "nill" to check the category (declared as String) might contain the String value "nill".
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, i thought this a new reserved keyword.
 
Good night. Drive safely. Here's a tiny ad for the road:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!