1.

Choose the statements which are valid for given code snippet: public class Generic { public T Field; public void testSub() { T i = Field + 1; } } class Program { static void Main(string[] args) { Genericg = new Generic(); g.testSub(); } }

A. Code runs successfully but prints nothing
B. Code runs successfully and prints 1
C. Program will give run time error
D. Compile time error
Answer» E.


Discussion

No Comment Found