Computer Science, asked by tamil98, 11 months ago


56. public class Main
{
public static void gfg(String s)
{
System.out.println("Training");
}
public static void gfg(Object o)
{
System.out.println("Test");
}
public static void main(String args[])
{
gfg(null);
}}

a) Training
b) Test
c) Test Training
d) compiler error

Answers

Answered by Aniketbhai1234
0

I think the answer will a) Training. It can be wrong also but please don't angry with me because I am new at brainly and I don't know much about computer science


VedaantArya: Correct, but why?
Similar questions