Apex classes and Java classes work quite similar, but there are some differences.
Note: All Action events must be the child of an <apex:form>
Apex switch statement expressions can be one of the following types.