Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyfrozen string dedupSingle-choice MCQ

Given the snippet, what are the two printed object_id comparison results and why?

# frozen_string_literal: true a = "hello" b = "hello" c = String.new("hello").freeze puts a.object_id == b.object_id puts a.object_id == c.object_id