• Core Java
    • Basic Core Java
    • Object Oriented Programming
    • Exception in Java
    • Collections in Java
    • Java 8 Features with Examples
    • String in java
    • Data Structure
      • Linked List
        • Singly Linked List
          • Singly Linked List Implementation in Java
          • Singly Linked List Implementation using generics in Java
          • Delete operation in Linked list
          • Implementation of Index based Linked List
          • Reverse a Singly Linked List
          • Middle of a Singly Linked List
          • Sorting of linked list in Java
          • Remove duplicate nodes from linked list in Java
          • Rotation of Linked List
          • Intersection of two linked lists in Java
          • Iterator for singly linked list java
        • Doubly Linked List
          • Doubly Linked List example in Java
          • Delete operation in doubly linked list
          • Reverse a Doubly Linked list
          • Iterator for doubly linked list java
        • Circular Linked List
          • Singly Circular linked list
          • Doubly Circular Linked List in Java
          • Loop detection in a linked list
  • Spring Boot
  • Spring Batch
  • JPA
  • Hibernate
    • Hibernate Basic
    • Inheritance Mapping in Hibernate
    • Association Mapping in Hibernate Using Spring Boot
    • Query Language In Hibernate
  • Contact Us
Sign in
Welcome!Log into your account
Forgot your password?
Privacy Policy
Password recovery
Recover your password
Search
JavaTute JavaTute
  • Core Java
    • Basic Core Java
    • Object Oriented Programming
    • Exception in Java
    • Collections in Java
    • Java 8 Features with Examples
    • String in java
    • Data Structure
      • Linked List
        • Singly Linked List
          • Singly Linked List Implementation in Java
          • Singly Linked List Implementation using generics in Java
          • Delete operation in Linked list
          • Implementation of Index based Linked List
          • Reverse a Singly Linked List
          • Middle of a Singly Linked List
          • Sorting of linked list in Java
          • Remove duplicate nodes from linked list in Java
          • Rotation of Linked List
          • Intersection of two linked lists in Java
          • Iterator for singly linked list java
        • Doubly Linked List
          • Doubly Linked List example in Java
          • Delete operation in doubly linked list
          • Reverse a Doubly Linked list
          • Iterator for doubly linked list java
        • Circular Linked List
          • Singly Circular linked list
          • Doubly Circular Linked List in Java
          • Loop detection in a linked list
  • Spring Boot
  • Spring Batch
  • JPA
  • Hibernate
    • Hibernate Basic
    • Inheritance Mapping in Hibernate
    • Association Mapping in Hibernate Using Spring Boot
    • Query Language In Hibernate
  • Contact Us

Comparison of two String using == and equals()

By
Rakesh
-
September 7, 2018

Please Visit this page String Constant Pool In java.

Rakesh

RELATED ARTICLESMORE FROM AUTHOR

StringUtils startsWith() example in Java

StringUtils startsWith() example in Java

StringUtils isWhitespace() example in Java

StringUtils isWhitespace() example in Java

StringUtils isNumeric() example in Java

StringUtils isNumeric() example in Java

  • CollectionUtils permutations() Example in Java
  • CollectionUtils retainAll() Example in Java
  • CollectionUtils reverseArray() Example in Java
  • CollectionUtils select() Example in Java
  • CollectionUtils removeAll() Example in Java
  • StringUtils startsWith() example in Java
  • StringUtils isWhitespace() example in Java
  • StringUtils isNumeric() example in Java
  • StringUtils isAlpha() example in Java
  • How to send post body using restTemplate as x-www-form-urlencoded
  • Spring Batch Scheduler Example using Spring Boot
  • Spring Batch Example to read Data from the Database and write to Excel
  • How to upload CSV file to oracle database using Spring Batch
  • Java.lang.IllegalStateException Ambiguous mapping Cannot map Controller method
  • What is Hibernate
  • CollectionUtils union() Example in Java
  • CollectionUtils intersection() Example in Java
  • CollectionUtils isEqualCollection() Example in Java
  • How does String compareTo() method work in Java
  • Hibernate one to one unidirectional with MySQL and Spring Boot
  • Hibernate Interview Questions And Answers
  • Spring Batch ValidatingItemProcessor Example
  • How to send Cookie in MockHttpServletRequest
  • How to update an entity using Spring Data JPA
  • How Spring Boot loads properties or yml or yaml file
  • Spring Data JPA Distinct example
  • Error creating bean with name entityManagerFactory defined in class path resource : Invocation of init method failed
  • Spring Data JPA Not Null
  • java.lang.IllegalArgumentException Could not resolve placeholder
  • How to Split String in Java
  • No Property Found for Type
  • How to post json data using Curl
  • Consider defining a bean of type in your configuration
  • Spring Boot Get Cookie From Request
  • Spring Batch ItemProcessor Example
  • AsyncItemProcessor Spring Batch Example
  • CompositeItemProcessor Spring Batch Example
  • Spring Batch ItemReader Example
  • How to Debug Spring Boot Application using Intellij
  • Spring jdbctemplate example with spring boot
  • JpaPagingItemReader Example
  • JdbcPagingItemReader spring batch example
  • StaxEventItemReader Example
  • JsonItemReader Spring Batch Example
  • JdbcCursorItemReader Spring Batch Example
  • Spring Batch FlatFileItemReader Example
  • Access to dialectresolutioninfo cannot be null when ‘hibernate.dialect’ not set
  • How to configure multiple datasource in spring boot
  • Tomcat JNDI Datasource configuration
  • Not a managed type entity spring boot
  • StoredProcedureItemReader example
  • N+1 problem in Hibernate
  • Dirty Checking in Hibernate
  • How to create custom Order in Hibernate
  • Hibernate Query Language example
  • Difference between save() and persist() in Hibernate
  • Difference Between get() and load() in Hibernate
  • Spring Boot Redis Cache Example
  • JPA CriteriaBuilder example
  • Orika Mapper Example
  • Spring Boot JMS ActiveMQ Producer and Consumer Example
  • Spring Boot Kafka Producer and Consumer Example – Step By Step Guide
  • Spring Boot AWS SQS Listener Example
  • How to create users and groups in AWS
  • How to create SQS queue in AWS
  • How to create free Amazon AWS Account
  • Get Session From EntityManager in Spring Boot
  • Spring Boot CRUD Example With MySQL/PostgreSQL
  • Hazelcast Cache Spring Boot Example
  • How to get ApplicationContext in Spring Boot
  • How to convert List to comma separated String in Java
  • StringUtils join() Example in Java
  • Spring Data JPA @Modifying Annotation Example
  • CollectionUtils isEmpty() Example in Java
  • StringUtils isEmpty() and IsBlank() Example in Java
  • Hibernate/JPA EhCache Configuration Example
  • OneToMany Mapping using @JoinTable in Hibernate/JPA
  • @OneToMany orphanRemoval true example in Hibernate/JPA
  • How to get JPA EntityManager in Spring Boot
  • JPA CascadeType MERGE example using Spring Boot
  • Hibernate Lazy vs Eager loading Example
  • JPA and Hibernate Cascade Types example with Spring Boot
  • Failed to lazily initialize a collection of role could not initialize proxy – no Session
  • JPA EntityManager persist() and merge() method.
  • @ElementCollection Example in Hibernate/JPA Using Spring Boot
  • JPA EntityManager CRUD example Using Spring Boot
  • JPA EntityManager remove() example Using Spring Boot
  • Hibernate First Level Cache example using Spring Boot
  • JPA EntityManager persist() method Example
  • JPA EntityManager find() method
  • How to write custom method in repository in Spring Data JPA
  • How to create a custom repository in Spring Data JPA
  • Sorting And Pagination in Spring Data JPA
  • Spring Data JPA Interview Questions and Answers
  • Spring Data JPA @NamedNativeQuery
  • Spring Data JPA @NamedQuery
  • Spring Data JPA @Query Annotation
  • Spring Data JPA Named Parameters
  • Define multiple Rest API with the same name
  • Spring Data JPA JPQL and Native Query Example

  • Home
  • Hibernate/JPA Example Using Spring Boot
  • Exception Handling in Java With Example
  • Contact Us
  • Privacy Policy
© 2022 JavaTute