What is difference between fail-fast and fail-safe?
No Answer is Posted For this Question
Be the First to Post Answer
Difference between class#getinstance() and new operator ?
What is ‘has a’’ relationship in java?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
Why can't we override private static methods?
What is string length in java?
What is the size of integer?
Difference between hashCode() & equals()?
Can an interface have a class?
What is the purpose of sizeof operator?
what value will be return by the read() method once it reaches the end-of-file? a. Throws EOException b. Return null c. Return -1 d. Read method return nothing, because it is void method
List some important features of java 10 release?
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }