Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Interview Questions
    • Spring Frameworks
    • Core java
    • Python
    • C++
  • NM
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Immutable

  • Immutable class interview questions
    Core Java interview Immutable Interview Questions Core Java interview Interview
    22 December

    Immutable class interview questions

    In this post, I am going to share java interview questions which are generally asked on immutable class. Immutable class is important topic as it deals with creation of thread safe class. Here I am providing some important immutable class interview questions with answers. 1. What is immutable class? Answer : Immutable objects are those […]

    Read More
  • Core Java interview Immutable
    21 December

    How to create immutable class in java

    In this tutorial, we are going to see how to create immutable class in java. Immutable class is class whose state can not be changed once created. Example: String is best example for immutable class. Once you create a String, you can not change it. Immutable class is very simple to understand, it has only […]

    Read More
  • Core Java interview Immutable String
    07 May

    Why String is immutable in java

    String class is immutable in java. If you take dictionary meaning of immutable, it means unable to be changed or unchanging over time, so String is unchangeable or unmodifiable in java. Let’s understand with example. [crayon-6833c643bb258971822568/] As you can see, value of str1 did not change. It created another String object with value “Hellojava2blog” but […]

    Read More

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020-22 Java2Blog Privacy Policy