in Education by
Which of these statement is incorrect? (a) Every class must contain a main() method (b) Applets do not require a main() method at all (c) There can be only one main() method in a program (d) main() method must be made public This question was posed to me in an online quiz. This interesting question is from Class Fundamentals & Declaring objects topic in division Classes and Methods of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Right choice is (a) Every class must contain a main() method To explain I would say: Every class does not need to have a main() method, there can be only one main() method which is made public.

Related questions

0 votes
    Which of these is an incorrect Statement? (a) It is necessary to use new operator to initialize an ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these is an incorrect array declaration? (a) int arr[] = new int[5] (b) int [] arr ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these statements are incorrect? (a) Assignment operators are more efficiently implemented by Java run- ... and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following statements are incorrect? (a) public members of class can be accessed by any code ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following statements are incorrect? (a) static methods can call other static methods only (b) ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following statements are incorrect? (a) Variables declared as final occupy memory (b) final ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these data type can be used for a method having a return statement in it? (a) void (b ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is not a correct statement? (a) A recursive method must have a base case (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is not a correct statement? (a) Every class containing abstract method must be declared ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following is used with the switch statement? (a) Continue (b) Exit (c) break (d) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a decision making statement? (a) if (b) if-else (c) switch (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a valid jump statement? (a) break (b) goto (c) continue (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which statement is true about java? (a) Platform independent programming language (b) Platform dependent programming ... and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about do statement? (a) do statement executes the code of a loop at least once (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    From where break statement causes an exit? (a) Only from innermost loop (b) Terminates a program (c ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
...