This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object reference variables as literals?

 
Maddison
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20529
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
null
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 661
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam Sorry. I don't get you. How do you say It's null??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic