What is the function of compareto in java?


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

Post New Answer

More Core Java Interview Questions

I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

0 Answers  


Can we have two main methods in a java class?

0 Answers  


Why is it important to initialize a variable?

0 Answers  


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

0 Answers  


In which language JVM (Java Virtual Machine) is implemented

5 Answers  






How do constructors use this() and super()?

0 Answers  


What is meant by inheritance and what are its advantages?

0 Answers  


What is the static method?

0 Answers  


What are the limitations of procedural programming approach?

0 Answers   Amdocs,


What is Java Reflection API? Why it’s so important to have?

0 Answers  


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

0 Answers  


What JNDI(Java Naming and Directory Interface) provides?

4 Answers  


Categories