Win a copy of Design for the Mind this week in the Design 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: 20511
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