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:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
Immutable objects....
Anonymous
Ranch Hand
Posts: 18944
posted 24 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 24 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 24 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 24 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 24 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 24 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.
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Mutable
o/p needed
Wrapper Classes
Wrapper Classes
immutable
More...