Sign in

Deepti Shahi
Engineer with a passion for building and breaking one code at a time. Do 👏 and share if you like what you see here!
Photo by on

A sequence of characters “abc” in Java is an object that implements an instance of String class, meaning this string object stores only the reference of this object in memory rather than the actual value.
Definition of String class:

public final class String
extends Object
implements Serializable, Comparable<String>, CharSequence

How to create a String object?

//Declaration…


The famous story of Cleopatra’s pearls as told by Pliny the Elder in his Natural History where she dissolved a pearl from her earring in a goblet of wine (or vinegar) and gulped it at the legendary banquet where she had bet Marc Antony that she could host the most…

Deepti Shahi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store