write java code to print second max number in the array
Answer Posted / sunny
I think, the except for Himesh's program, all other ones
doesnt handle duplicate values ...
I mean if the numbers are :- 9 9 8 8 7 7 7 1 3 2
the answer should be 8 ideally.
But I doubt whether thats really happening in any other
programs, except for Himesh's.
Do let me know, if I am wrong. Thanks.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a Transient Object?
What is a ?
What is string buffer?
How many decimal digits is 64 bit?
What is the difference between abstract classes and interfaces?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
How finally used under exception handling?
Explain the key functions of data binding?
How do you implement singleton class?
Why isn’t there operator overloading?
What are the Main functions of Java?
What is the difference between preemptive scheduling and time slicing in java programming?
How will you print number in reverse (descending) order in BST.
What is set string?
What is the synonym of framework?