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)
Immutable objects....
Anonymous
Ranch Hand
Posts: 18944
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Which of the following classes produce immutable objects?
1)java.lang.Double
2)java.lang.StringBuffer
3)java.lang.Boolean
4)java.lang.Math
ShreeDevi
Greenhorn
Posts: 23
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is the answer 1,3&4?
Tony Alicea
Desperado
Posts: 3226
5
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Find the answer in:
http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Number.html
[This message has been edited by Tony Alicea (edited February 10, 2000).]
Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Roll
Ranch Hand
Posts: 52
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Answer is 1) 2) 3)
Wrapper classes and StringBuffer class are immutable.
Thandapani Saravanan
Ranch Hand
Posts: 117
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
As for as i know only Wrapper classes and
String
are immutable,
not StringBuffer
.
Saravanan
Anonymous
Ranch Hand
Posts: 18944
posted 25 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Saravanan:
you are right! The correct answer is only 1) & 3)
Thanks for the reply.
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
Mutable
o/p needed
Wrapper Classes
Wrapper Classes
immutable
More...