McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Bachelor of Computer Applications (BCA)
→
Java Programming
→
Which of the below is invalid identifier...
Q.
Which of the below is invalid identifier with the main method?
A.
public
B.
static
C.
private
D.
final
Answer» C. private
1.8k
0
Do you find this helpful?
16
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
Which one of the following is a valid identifier in java?
When method defined in subclass which has same signature as a method in a super class, it is known as method
Which of these access specifiers must be used for main() method?
Why we use array as a parameter of main method
To design a general-purpose search method, searchList, to search a list, which of the following must be parameters of the method searchList? (i) The array containing the list. (ii) The length of the list. (iii) The search item. (iv) A boolean variable indicating whether the search is successful.
When method is overridden , then by subclass object which class method is called _____.
What is the process of defining a method in terms of itself that is a method that calls itself?
A method without the body is called ________ method.
When an instance of a class, or object, is specified as a parameter to a method, ______ to the said object is passed to the method.
If you run the code below, what gets printed out?String s=new String ("Bicycle"); int iBegin=1; char iEnd=3; System.out.println (s.substring (iBegin, iEnd));