How do you use compareto?


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

Post New Answer

More Core Java Interview Questions

explain local datetime api in java8?

0 Answers  


what is data binding? give the example

1 Answers   TCS,


Nested classes VS Inner classes?

3 Answers   Infosys,


What is a char in java?

0 Answers  


Difference between a MenuItem and a CheckboxMenuItem?

1 Answers  






Explain polymorphism citing an example.

0 Answers   Amazon,


Difference between String and StringBuffer.

3 Answers   GE, IBM,


ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }

1 Answers  


Which are different kinds of source code?

0 Answers  


What is java Applet?

0 Answers   TCS,


What is the largest data type in java?

0 Answers  


I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?

2 Answers   Honeywell,


Categories