Showing posts with label Difference. Show all posts
Showing posts with label Difference. Show all posts

Friday, November 19, 2021

Java 8 Vs Java 11 - Developers Must know

1. Overview

In this tutorial, We'll learn what are the key differences between java 8 and java 11.

Java 8 is introduced on March 14th 2014 which is released with major changes after a very long time to compete with other programming languages such as scala.

Java 11 is introduced on September 25th 2018 which is after 4 years of java 8.

In the next sections, we will see the main core concepts in java 8 and java 11. And also what are the other core features added in java 9 also.
Java 8 Vs Java 11

Friday, March 8, 2019

Java | Difference between String.equals() and String.contentEquals() method?

What is the difference between String.equals() and String.contentEquals() method?

In this post, We will learn What is the difference between String.equals() and String.contentEquals() method in java? Simply contentequals vs equals  for these string methods.

Both these methods are present in the String class in java.

Read the article on Examples on String contentEquals method.

Syntax:

boolean equals​(Object anObject)
public boolean contentEquals​(CharSequence cs)

Difference between String.equals() and String.contentEquals() method?