what is comparable and comparator interface?
What is integer valueof?
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); } }
What do you understand by weak reference?
What are methods and how are they defined?
How can u create the Object of class Without using "New" opertor?
Is array size fixed in java?
briefley expalin about the packages
How do you declare an empty string?
What happens when heap memory is full?
Explain the difference between abstract classes and interfaces in java?
How many ways can you break a singleton class in java?
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.