1.

What will be the java output of the given function wheninvoked?public void show()long num = 234455, sum = = 0;do{sum *= 10;long y = num % 10;sum += y;num /= 10;} while(num != 0);System.out.println("The Output = " + sum);}​

Answer»

ANSWER:

SUM *= 10;

long y = NUM % 10;

sum += y;

num /= 10;

} while(num != 0);



Discussion

No Comment Found