aspose file tools*
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
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: 19543
    
  16

null


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 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: 513

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?
 
Similar Threads
IS it true that Java Uses only Call by value?
datatypes in java
"Strings"
command line argument
doubt on garbage collection