Question - 1
Which of these is not a valid keyword in Java ?
Answer- D
Question - 2
Which of these are legal identifiers?
- number_a
- number_1
- $1234
- all the above
Solutions
Answer- D
Question - 3
Which of the following are Java keywords?
- throw
- void
- private
- All the above
Solutions
Answer- D
Question - 4
Which is the legal range of values for a short?
- -128 to 127
- -256 to 255
- -32768 to 32767
- D. 0 to 65535
Solutions
Answer- C
Question - 5
which operator is considered to be with highest precedence?
Answer- A
Question - 6
Java is a _____________language.
- object oriented
- procedural oriented
- platform oriented
- system oriented
Solutions
Answer- A
Question - 7
- java deployment kit
- java development kit
- java deallocation kit
- None of the above
Solutions
Answer- B
Question - 8
Java is developed by_________
- Microsoft
- Oracle
- Sun
- Google
Solutions
Answer- C
Question - 9
What is the default value of Object variable?
- undefined
- 0
- nulll
- not defined
Solutions
Answer- A
Question - 10
Which of the following is a legal identifier in java ?
- +@myvar
- $_myvar
- 3_myvar
- None of the above
Solutions
Answer- B
Question - 11
What is the extension of the Java program?
Answer- A
Question - 12
What is the size of float variable?
- 8 bit
- 16 bit
- 32 bit
- 64 bit
Solutions
Answer- B
Question - 13
- JIT improves the runtime performance of computer programs based on bytecode.
- JIT is an application development framework.
- JIT is an implementation of the Java Virtual Machine which executes Java programs.
- None of the above
Solutions
Answer- C
Question - 14
Java is developed by__________
- James Gosling
- Patrick Naughton
- Rasmus Lerdorf
- None of the above
Solutions
Answer- A
Question - 15
Which operator will always evaluate all the Operands?
Answer- D
Question - 16
Which of the following is true about String?
- String is mutable.
- String is immutable.
- String is datatype
- None of the above
Solutions
Answer- B
Question - 17
In order to run Java program, we need to install __________application program
To run a java program, we need to install the "Java Development Kit" (JDK) application program.
Answer- B
Question - 18
Which of the following operations is/are required to convert the java source code into output form
- Compilation
- Interpretation
- Both A & B
- None
Solutions
Answer- C
Question - 19
- Java Runtime Environment
- java runtime execution
- java runtime exception
- None of the above
Solutions
Answer- A
Question - 20
Previously Java was known as ________.
- Oak
- Java only
- Javascript-v-0
- None of the above
Solutions
Answer- A
Practice more set questions