- A A new method
- B A static method
- C A main method
- D A finalize method
- Share this MCQ
Answer:
C
Share this MCQ
- A. Incorrect: A
new
method is used to create an instance of the class and isn't automatically added to a runnable class. - B. Incorrect: A
static
method is used to work with data in a table and isn't automatically added to a runnable class. - C. Correct: A
main
method is automatically added to a runnable class. Therefore, you would add a runnable class instead of a class to your project. - D. Incorrect: A
finalize
method finalizes the instance of the class. It isn't automatically added to a runnable class.
Share this MCQ