Java Quiz interview questions
20 questions. Tap “Show answer” to check yourself.
-
Which one of the following is not a wrap class?
- Short
- Double
- Byte
- Random
Show answer
D. Random
-
POP is a/an
- Optional object programming
- Object optional programming
- Object oriented programming
- None of these
Show answer
C. Object oriented programming
-
Which one of the following languages is pure object oriented language?
- Java
- C
- C++
- Object pascal
Show answer
A. Java
-
Which one of the following is not a java keyword?
- static
- break
- study
- class
Show answer
C. study
-
By invoking repaint ( ) for a component, the AWT invokes the method
- Update ( )
- Show ( )
- Paint ( )
- Draw ( )
Show answer
A. Update ( )
-
The default priority is
- 1
- 2
- 4
- 5
Show answer
D. 5
-
When the thread is ready for execution and waiting for the availability of the processor, it is said to be
- dead state
- running state
- in runable state
- blocked state
Show answer
C. in runable state
-
Java declaration statement must end with
- a semicolon
- full stop
- comma
- a colon
Show answer
A. a semicolon
-
Java
- is most suitable for Internet programming
- non an acronym
- a really simple, reliable, portable and powerful language
- all of these
Show answer
D. all of these
-
Which one of the following is a logical operator?
- ||
- &&
- !
- all of these
Show answer
D. all of these
-
The method which belongs to the string class is/are
- Compare to ( )
- Length ( )
- Substring ( )
- Equals ( )
Show answer
B. Length ( )
-
For a 32-bit integer value, keyword used is
- Boolean
- Int
- Short
- Long
Show answer
B. Int
- Advertisement
-
A web page is
- Made up of text and HTML tags
- Marked by an opening HTML tag
- Marked by a closing HTML tag
- All of these
Show answer
D. All of these
-
Java is a general purpose object oriented programming language developed by
- Patrick Naughton
- Infosys
- I.B.M.
- Microsystems of USA
Show answer
D. Microsystems of USA
-
Which one of the following web browsers uses Just-In-Time (JIT) complier?
- Hot JAVA
- Netscape navigator
- Internet Explorer
- None of these
-
?: is: a/an
- Assignment operator
- Conditional operator
- Logical AND
- Inequality
Show answer
B. Conditional operator
-
Which one of the following is a java keyword?
- Public
- Void
- While
- Switch
Show answer
A. Public
-
Which one of the following concept is incorporated in building a java program?
- Polymorphism
- Inheritance
- Encapsulation
- All of these
Show answer
D. All of these
-
Object oriented programming language, is
- C++
- Java
- Both (a) and (b)
- None of these
Show answer
C. Both (a) and (b)
-
The methods wait ( ) and notify ( ) are defined in
- java.lang.object
- java.lang.thread
- java.lang.string
- java.lang.threadgroup
Show answer
A. java.lang.object