Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

int a=08 java

/*In Java, if you are defining an int with a leading '0' denotes that you
are defining a number in Octal. int a = 08 is giving out of range error
]because there is no any number '8' in Octal. Octal provides 0-7 numbers only.*/
 
PREVIOUS NEXT
Tagged: #int #java
ADD COMMENT
Topic
Name
9+6 =