Results 1 to 2 of 2

Thread: null in java

  1. #1
    Manuv16589 is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default null in java

    What is null in java?
    What does the following statement mean?
    If(fin!=null){
    }
    thanks in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,863
    Rep Power
    19

    Default Re: null in java

    null implies a reference that is pointing to nothing (null).
    So 'fin != null' is checking that the reference 'fin' is not null before doing whatever is in the if block.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. java.lang.IllegalArgumentException: im == null!
    By simantoch in forum Java 2D
    Replies: 4
    Last Post: 04-12-2011, 12:00 PM
  2. java.lang.NumberFormatException: null
    By prizzly in forum New To Java
    Replies: 2
    Last Post: 01-02-2011, 06:56 AM
  3. Replies: 6
    Last Post: 10-18-2010, 10:40 AM
  4. JAVA SOUND API's NULL POINTER EXCEPTION
    By ank64 in forum New To Java
    Replies: 14
    Last Post: 08-10-2010, 11:26 AM
  5. java.lang.NumberFormatException: null
    By Eric in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-05-2007, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •