Tell your name?


Recently I came across the following code snippet – wanted to share with everyone.

if (obj == null) {
    System.Out.println( obj.getClass().getName() );
}

To explain in plain english what the programmer is trying to do:

Even if you are NULL tell me your name 😛

Advertisements
Tell your name?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s