Multiple choice

Identify the correct output of the code given below:

using System;
class welcome {
 static void Main(string[] args) {
  String s =  "Welcome";;
  Object s3 = s.Clone();
  Console.WriteLine( "" + s3);
 }
}

  1. Compilation error due to invalid cast of Object to String.

  2. Compilation error due to invalid cast of String to Object.

  3. Welcome

  4. Null

  5. Exception is possible.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Correct output as it is a valid conversion for Object class.