MCQOPTIONS
Saved Bookmarks
| 1. |
For the code given below which statements are perfectly valid? public class Csharp { public void subject <S>(S arg) { Console.WriteLine(arg); } } class Program { static Void Main(string[] args) { Csharp c = new Csharp(); c.subject("hi"); c.subject(20); } } |
| A. | Run time exception error |
| B. | Compile time error |
| C. | Code runs successfully and prints required output |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |