0 By Nithya Vasudevan In Enumerations, HTTPPosted October 17, 2016Comparing EnumsWe can use either == or equals() method to compare enum values. Example: Both the ‘if’ statements in the below code are equivalent. SIZE == LARGE SIZE EQUALS LARGE Pizza Size is LARGE READ MORE