How many objects will be created for the following code:String firstName = 'Santosh'; String lastName = new String('santOsh'); - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
18 Aug 2022 12:01 PM study24x7 study24x7

How many objects will be created for the following code:
String firstName = "Santosh"; String lastName = new String("santOsh");

A

One

B

Two

C

Three

D

Other, write in comment

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles