Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Programmer Certification (OCPJP)
identifier
Ash sav
Ranch Hand
Posts: 55
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Wrapper classes(Boolean, Integer,...) are valid identifiers. Is it true or false?
Manfred Leonhardt
Ranch Hand
Posts: 1492
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Ash,
If you mean can we use them as variable names (not keyword or reserved words) the answer is
TRUE
.
The following example proves the point.
public class A { public static void main( String[] args ) { Boolean Boolean = new Boolean( "false" ); System.out.println( Boolean ); } }
Regards,
Manfred.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
label(s) question
What are valid characters to use in an identifier?
Binary AND Operator
SCJP beginers question
Invalid Identifiers
More...