Computer Science, asked by gshailesh97, 1 year ago

The following object declarations have been proposed. Which of these object declarations will cause a compile-time error?


I. String foo = new String("Foo");


II. Char foo = new String("Foo");


III. String foo = "Foo";


options are given below:

II only
I and II incorrect
III only
I and III
I only

Answers

Answered by Anonymous
6
Hlo...

HERE IS UR ANSWER...

✴️III only.

HOPE IT'S HELP YOU..

THANKS☺️☺️☺️
Similar questions