What is the output of the following: int a = 0; int b = 10; a =-b; System.out.println("a:” + a + “b:" +b);
Advertisements
प्रश्न
What is the output of the following:
int a = 0;
int b = 10;
a =-b;
System.out.println("a:” + a + “b:" +b);अति संक्षिप्त उत्तर
Advertisements
उत्तर
The given code produces a compilation error due to incorrect quotation marks in the System.out.println() statement.
Output: a:-10b:10
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
