πŸ“Š JAVA
Q. Which file is used to define dependency in maven?
  • (A) version.xml
  • (B) build.xml
  • (C) dependency.xml
  • (D) pom.xml
πŸ’¬ Discuss
βœ… Correct Answer: (D) pom.xml
πŸ“Š JAVA
Q. Java is a ........... language.
  • (A) weakly typed
  • (B) strongly typed
  • (C) moderate typed
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) strongly typed
πŸ“Š JAVA
Q. How many primitive data types are there in Java?
  • (A) 6
  • (B) 7
  • (C) 8
  • (D) 9
πŸ’¬ Discuss
βœ… Correct Answer: (C) 8

Explanation: There are 08 primitive data types

Byte
Short
Int
Long
Float
Double
Char
Boolean.

Note :- string is non-primitive data type.

πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) signed
πŸ“Š JAVA
Q. Which of the following is not a maven goal?
  • (A) install
  • (B) clean
  • (C) debug
  • (D) package
πŸ’¬ Discuss
βœ… Correct Answer: (C) debug
πŸ“Š JAVA
Q. Size of int in Java is
  • (A) 16 bit
  • (B) 32 bit
  • (C) 64 bit
  • (D) Depends on execution environment
πŸ’¬ Discuss
βœ… Correct Answer: (B) 32 bit
πŸ“Š JAVA
Q. The smallest integer type is ......... and its size is ......... bits.
  • (A) short, 8
  • (B) byte, 8
  • (C) short, 16
  • (D) short, 16
πŸ’¬ Discuss
βœ… Correct Answer: (B) byte, 8
πŸ“Š JAVA
Q. Which is the Parent class of annotation class?
  • (A) Super
  • (B) Main
  • (C) Object
  • (D) Class
πŸ’¬ Discuss
βœ… Correct Answer: (C) Object
πŸ“Š JAVA
Q. Which of the following annotation is used to avoid execution of Junits?
  • (A) @ignore
  • (B) @avoid
  • (C) @explicit
  • (D) @NoTest
πŸ’¬ Discuss
βœ… Correct Answer: (A) @ignore
πŸ“Š JAVA
Q. Size of float and double in Java is
  • (A) 32 and 64
  • (B) 64 and 64
  • (C) 32 and 32
  • (D) 64 and 32
πŸ’¬ Discuss
βœ… Correct Answer: (A) 32 and 64