This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes object reference variables as literals? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "object reference variables as literals?" Watch "object reference variables as literals?" New topic
Author

object reference variables as literals?

Maddison
Greenhorn

Joined: Nov 16, 2005
Posts: 6
Hi
One of the JCJAP exam objectivies is:

Develop code that uses primitives, enumeration types, and object references, and recognize literals of these types.

what is a literal value of an object reference?

thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20128
    
  30

null


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

null

That's one. A String literal is a reference to a String object. The .class literal is a reference to a Class object.

Hope this helps!
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 659

Iam Sorry. I don't get you. How do you say It's null??


If you are not laughing at yourself, then you just didn't get the joke.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: object reference variables as literals?
 
It's not a secret anymore!