This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
yes....deepak you are right..............sorry guys................
the fact is that why primitives doesnot required comparator is.............
because Array.sort() method is overloaded millions times to provide a couple of methods to sort the primitives.............
so there is no need to sort() primitives and if you are trying to do that you will get exception...(i am not sure which error may be compile time or runtime......but most probably you will get runtime exception because sort is done at runtime.)
above explaination which i give is for string class................it implements comparable interface so there is no need to sort it.......
it automatically do that in increasing order.............