Computer Science, asked by harshad023, 6 months ago

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 ayansha70
3

Answer:

sorry buddy your question is tooooo long sorry one's more

Answered by SattuTattu
0

Answer:

Compilation error

Explanation:

Similar questions