what is comparable and comparator interface?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is integer valueof?

0 Answers  


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); } }

4 Answers   Cap Gemini,


What do you understand by weak reference?

0 Answers  


What are methods and how are they defined?

0 Answers  


How can u create the Object of class Without using "New" opertor?

3 Answers   IBM, TCS,


Is array size fixed in java?

0 Answers  


briefley expalin about the packages

3 Answers  


How do you declare an empty string?

0 Answers  


What happens when heap memory is full?

0 Answers  


Explain the difference between abstract classes and interfaces in java?

0 Answers  


How many ways can you break a singleton class in java?

0 Answers  


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.

2 Answers  


Categories