[Solved] In Java What is the < > notation [duplicate]


It denotes generics. Mapper is a generic and you’re inheriting from Mapper<LongWritable, Text, Text, IntWritable>, which is that generic specialized for those types.

It’s like Vector – also a generic – you can have Vector<Object> and Vector<SomeOtherClass>.

solved In Java What is the < > notation [duplicate]