单项选择题

A.小程序内必须有 main() 方法
B.独立程序必须包含 main() 方法,而Applet小程序的父类一定是Applet
C.两者都必须有 main() 方法
D.小程序必须包含 main() 方法,而独立程序的父类一定是Applet