1) Warning because that is not an error but may cause problems.
2) Those warning should be removed as far as possible.
3) For generics warnings comes when you use a parametrized thing(class,interface , method) without specifying the parameter like you have done for the Comparator.
The best way to handle warnings is to use an
IDE like eclipse. It will suggest you how you can remove those warnings.