A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
object reference variables as literals?
Maddison
Greenhorn
Joined: Nov 16, 2005
Posts: 6
posted
Nov 16, 2005 23:10:00
0
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: 19216
I like...
posted
Nov 17, 2005 04:01:00
0
null
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
Steve Morrow
Ranch Hand
Joined: May 22, 2003
Posts: 657
I like...
posted
Nov 17, 2005 07:53:00
0
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: 508
I like...
posted
Nov 17, 2005 21:14:00
0
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
"Strings"
command line argument
datatypes in java
doubt on garbage collection
IS it true that Java Uses only Call by value?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter