How do you add an element to an arraylist in java?
No Answer is Posted For this Question
Be the First to Post Answer
Can you sort a string in java?
why java does not support mulitple inheritance directly?
Why java Don't Support Multiple interitence
What is the format of Inner Class after it compiled?
What is an enumeration class?
Difference between interface and abstract class with ex.
4 Answers Cognizant, Tech Mahindra,
Where import statement is used in a java program?
Can we clone singleton class in java?
How can you share data between two thread in Java?
What is binary tree in java?
Can we make main() thread as daemon?
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); } }