Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

object reference variables as literals?  RSS feed

 
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
Posts: 20893
81
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: 662
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
Boost this thread!