Trần Thu Hằng
Member
What will be the output if all necessary code is included (Header files and main function)?
A. Run time error
B. Compile time error
C. Null
D. It is a string
Code:
void test (Object &y)
{
y = "It is a string";
}
void main()
{
Object x = null;
test (x);
System.out.println (x);
}
B. Compile time error
C. Null
D. It is a string