Home / Programming Questions / JAVA MCQs / Page 2

JAVA MCQs with answers Page - 2

Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Which environment variable is used to specify the path to maven?

(A) PATH
(B) CLASSPATH
(C) JAVA_HOME
(D) MAVEN_HOME

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Which file is used to specify the packaging cycle?

(A) dependency.xml
(B) build.xml
(C) version.xml
(D) pom.xml

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Which file is used to define dependency in maven?

(A) version.xml
(B) build.xml
(C) dependency.xml
(D) pom.xml

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Java is a ........... language. 

(A) weakly typed
(B) strongly typed
(C) moderate typed
(D) None of these

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. How many primitive data types are there in Java? 

(A) 6
(B) 7
(C) 8
(D) 9

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. In Java byte, short, int and long all of these are

(A) signed
(B) unsigned
(C) Both of the above
(D) None of these

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Which of the following is not a maven goal?

(A) install
(B) clean
(C) debug
(D) package

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Size of int in Java is 

(A) 16 bit
(B) 32 bit
(C) 64 bit
(D) Depends on execution environment

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.