0
What will be the output ?
class test{ public static void main(String[] args){ int String = 100; System.out.println(String); } }
3 ответов
+ 1
Strings in Java are Objects that are backed internally by a char array.
Here you decleared String as a variable name which type is int so it will print int value .
+ 1
Just open solo ide and paste your code . simply it will print 100 without any error .
0
I want explanation why it gives 100 output. Why not compiler error?