Java Application Environment type

Hi,
In Java application, its visible two environment

image

Which scenario should I select WINDOWS_CLASS_BASED and which scenario should I select EVENT_BASED. Need help.

In Automation Studio, Java Application supports - Java Environment type with Windows Class Based, Event Based .

An event driven application refers to an application that responds to event driven actions generated by a user or system, whereas Windows Class Based - refers to application where window object is at top level without any menu bar or borders, whereas