Java objective questions with answers. Here five MCQ Questions with Answers are added on Java objects & classes and each question contain four options as possible answer but only one option is the correct answer. Select one and check your answer with the given correct answer.
(1)
Which of the following is an invalid declaration for the main method in java program?
[A]
public static void main (String [ ] args)
[B]
public static strictfp void main(String args[ ])
[C]
final static public void main (String args[ ])