brel-logo-white brel-logo-white
  • Travel
  • Case Study
  • How to
  • Technology
  • More
    • Sports
    • Health
    • Articles
    • Review
Notification
  • HomeHome
  • Finance
  • Health
  • Lifestyle
  • Sports
  • Contact Us
BreldigitalBreldigital
  • HomeHome
  • Finance
  • Health
  • Lifestyle
  • Sports
  • Contact Us
Search
  • Quick Access
    • Home
    • History
    • My Saves
    • My Interests
    • My Feed
  • Categories
    • Travel
    • Sports
    • Health

Top Stories

Explore the latest updated news!

How many socks in a drawer does a family of 4 have if each has three pairs of socks?

How to give space between two buttons in HTML?

How many keys are required when using symmetric encryption?

Stay Connected

Find us on socials
248.1k Followers Like
61.1k Followers Follow
165k Subscribers Subscribe
Breldigital > Blog > ds > What is the output of the following code snippet
ds

What is the output of the following code snippet

Last updated: 2023/07/24 at 6:18 PM
By Allen Kazadi Add a Comment
Share

What will be the output of the following code snippet?
Additional Details

Object s1 = new String(“Hello”);
Object s2 = new String(“Hello”);

if(s1 == s2) {
System.out.println(“s1 and s2 are ==”);
}else if (s1.equals(s2)) {
System.out.println(“s1 and s2 are equals()”);
}

Answer:

Answer : s1 and s2 are equals()

 

What is the output of the following code snippet

Read more: They come out at night

TAGGED: What is the output of the following code snippet?
Allen Kazadi July 24, 2023 July 24, 2023
By Allen Kazadi
Follow:
Allen is a Technology guy, He basically works on Top articles related to Technology, Gadgets, and more. To know more about his work.
Leave a comment Leave a comment

Leave a Reply

You must be logged in to post a comment.

Search

brel-logo-white brel-logo-white
Explore a wide range of brands and categories with our comprehensive coverage, and stay up-to-date with the latest news and trends by subscribing to our updates.
Categories:
  • Entertainment
  • Travel
  • Sport
  • Contact Us

Quick Links

  • My Feed
  • My Interests
  • History
  • My Saves

About US

  • Adverts
  • Our Jobs
  • Term of Use

© 2023 Brel Digital All Rights Reserved. All logos and images used on this website are registered trademarks of their respective companies

Welcome Back!

Sign in to your account

Lost your password?