what is the output of following program?
public class Test
{
public int getData() //getdata() 1
{
return 0;
{
public longgetData() //getData2
{
return 1;
{
public static void main (String [] args)
{
Test obj =newTest() :
System. out. println(obj.getData()) ;
)
}
A. L
B. 0
C. Runtime error
D. compilation error
Answers
Answered by
3
Answer:
sorry buddy your question is tooooo long sorry one's more
Answered by
0
Answer:
Compilation error
Explanation:
Similar questions