Given the following enum declaration: enum Rating {COMMON, U…

Given the following enum declaration: enum Rating {COMMON, UNCOMMON, RARE, EPIC, LEGENDARY;} What would be the output of the following line of code? Rating r1= Rating.EPIC;Rating r2 = Rating.UNCOMMON;System.out.println(r1.ordinal() – r2.ordinal());    Write your answer as a number.