Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Data type

Java Interview Questions on Data Types - 8


Question: 1

(A) 10
(B) 11
(C) 12
(D) Compilation Error

Level: Expert Category of MCQ: datatype



Question: 2

(A) byte
(B) short
(C) long
(D) class

Level: Beginner Category of MCQ: datatype



Question: 3

(A) 1
(B) 2
(C) 3
(D) 0

Level: Beginner Category of MCQ: datatype



Question: 4

(A) 'a'
(B) a
(C) 65
(D) 97

Level: Practitioner Category of MCQ: datatype



Question: 5

(A) 10
(B) 0
(C) Error in Code
(D) Nothing is printed

Level: Beginner Category of MCQ: datatype



Question: 6

(A) [7,1,5]
(B) [7,5,1]
(C) [7, 1, 5, 1]
(D) None of the above

Level: Beginner Category of MCQ: datatype



Question: 7

(A) Pen Pencil Box
(B) Pen Pencil
(C) Box
(D) Compilation Error

Level: Beginner Category of MCQ: datatype



Question: 8

(A) 0
(B) Garbage Value
(C) Compiler Error
(D) Runtime Error

Level: Beginner Category of MCQ: datatype


Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other