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
→
______ must be the first non comment sta...
Q.
______ must be the first non comment statement in the file.
A.
package.
B.
class.
C.
object.
D.
declaration.
Answer» A. package.
1.9k
0
Do you find this helpful?
7
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
What output is displayed as the result of executing the following statement?System.out.println ("// Looks like a comment.");
You execute the code below in an empty directory. What is the result? File f1 = new File ("dirname");F ile f2 = new File (f1, "filename");
Java language has support for which of the following types of comment ?
What is the correct JavaScript syntax to insert a comment that has more than one line?
Which of the following denotes a javadoc comment?
A single-line comment begins with a ________ and ends at the end of the line.
______ must be the first statement executed inside a subclass Constructor.
In order for a source code file, containing the public class test, to successfully compile, which of the following must be true?
In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?
Given the following statement: huey.setDouble(8.0*32.2+1.0);~~~What must be the data type of huey?.