What are the examples of immutable objects in Java ?
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
What are the examples of immutable objects in Java ?
Core Java
Ans. Following Classes in Java SE creates immutable objects
String class
Wrapper Classes like Integer, Float etc.
StackTraceElement
Most Enum classes
File Class
Locale Class
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 immutable  immutability objects  immutable  immutability
Asked in 1 Companies
Basic
 
frequent
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
Why is String immutable in Java ?
Why Char array is preferred over String for storing password?
How does making string as immutable helps with securing information ? How does String Pool pose a security threat ?
How is string object immutable if we can concat a string to it ?
How to implement an immutable class ?
What is an immutable class ?
What is an Immutable Object ?
Does Declaring an object "final" makes it immutable ?
Is String final in Java ?
What are stateless objects ? How are they different from immutable objects ? Which of these two is thread safe ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: