Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

You are here : Home » Java » Java Interview Questions on Data type

Java Interview Questions on Datatype - 7 Questions


Question: 1

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

Expert datatype[Posted by: Admin | Chicago, USA]



Question: 2

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

Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 3

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

Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 4

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

Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 5

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

Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 6

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

Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 7

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

Beginner datatype[Posted by: Admin | Chicago, USA]


[Contribute to this Website]


Java Objective Questions By Different 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 | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other