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
Can a class be private or protected in java?
Which is faster string or stringbuilder?
How do I write a self declaration?
What is are packages?
What mechanism does java use for memory management?
Is char * a string?
explain the difference between jdk and jvm?
What are pass by reference and pass by value?
What is hash in java?
What is the final access modifier in java?
Can we call a non-static method from inside a static method?
What is array initialization in java?
Explain aggregation in java?
How do you implement singleton class?
Are arrays passed by reference in java?