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

You are here : Home » Java » Java Interview Questions on Methods

Java Interview Questions on Methods - 25


Question: 1

(A) True
(B) False

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 2

(A) True
(B) False

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 3

(A) 00
(B) 0-1
(C) 0-2
(D) -2

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 4

(A) -2
(B) 0-1
(C) 0-2
(D) error: non-static method can't be called

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 5

(A) Compilation Error
(B) 3
(C) 5
(D) 6

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 6

(A) 63321
(B) 36
(C) 33
(D) 12336

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 7

(A) 32136
(B) 33126
(C) 12336
(D) 63321

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 8

(A) 123456789
(B) 12345678
(C) 122
(D) None of the above

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 9

(A) 12
(B) 01
(C) 11
(D) 10

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 10

(A) Yes
(B) No

DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 11

(A) Compilation Error
(B) Exception
(C) - -
(D) --

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 12

(A) -null-
(B) - -
(C) --
(D) java.lang.NullPointerException

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 13

(A) Compilation Error
(B) Exception
(C) --
(D) - -

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 14

(A) 3
(B) 5
(C) 18
(D) 16

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 15

(A) 77
(B) 78
(C) 79
(D) 710

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 16

(A) 7
(B) 8
(C) 9
(D) 10

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 17

(A) 7
(B) 8
(C) 9
(D) 10

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 18

(A) 555
(B) 544
(C) 554
(D) 543

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 19

(A) null
(B) Nothing is printed
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 20

(A) AT&T Lab65
(B) AT&T Lab 65
(C) AT&T Lab
(D) Compilation Error

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 21

(A) 6565
(B) 65
(C) "65"
(D) None of the above

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 22

(A) 65 & Infinite loop
(B) 65
(C) Nothing is printed
(D) Compilation Error

DiscussOnForum
Expert methods[Posted by: Admin | Chicago, USA]



Question: 23

(A) Compilation Error
(B) Exception
(C) Hi
(D) Hello

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 24

(A) 20
(B) 10
(C) Compilation Error
(D) None of the above

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 25

(A) true
(B) false
(C) Compilation Error
(D) None of the above

DiscussOnForum
Practionar methods[Posted by: Admin | Chicago, USA]


[Contribute to this Website]


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 Serialization Multithreading Networking Sending Email Applet Basics Other