Author: Kem Daigis
Country: Malta
Language: English (Spanish)
Genre: Health and Food
Published (Last): 4 September 2014
Pages: 303
PDF File Size: 8.18 Mb
ePub File Size: 9.13 Mb
ISBN: 288-3-34671-222-4
Downloads: 36833
Price: Free* [*Free Regsitration Required]
Uploader: Sazshura

Java Programming Questions and Answers

Compilation fails due to error at line 7. Videos mastguru Free useful videos – Subscribe Mastguru. Handling Exceptions – Differentiate among checked exceptions, unchecked exceptions, and Jaava. Option D is wrong. At line 7, a NullPointerException will be thrown since i is not initialized.

Hence option D is correct. Follow us on SlideShare to see the latest available 1z dumps pdf. Identifiers can start with a letter, a dollar dowbload or an underscore. From java se 8, we can use catch box for multi exceptions so this code compiles fine.

Threads – Java Programming Questions and Answers

And we have assigned 43 in decimal to b[2][1]. B is incorrect as the instance variable is shadowed by the variable in the method print. The start method causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.

If you odwnload the arguments in 4you’d have a valid constructor. The code compiles fine, hence C and D are incorrect. E is incorrect as code compiles fine. A is incorrect as we tried to implement an abstract class, but the abstract class should be obkective.

Handling Java objective questions answers pdf download – Create a try-catch block and determine how exceptions alter java objective questions answers pdf download program flow Q6. Here line 7 causes the failure. Answer And Explanation Answer: We can use the keyword “extends” to extend either ;df classes or two interfaces. The output will be [5, A, 5] B.


Starting the thread causes the object’s run method to be called in that separately executing thread. Which collection class associates values witch keys, and orders the keys according to their natural order. Option C is wrong. Predicate test method returns a Boolean so Java objective questions answers pdf download and D are incorrect. Xnswers the answer is E, if you remove line 7 then code will compile fine and provide output as error so in that case answer would be D.

Which three are methods of the Object class? Current Affairs 25th February Option E is correct. Choose three legal identifiers. Length of this array is 3. Which class cannot be subclassed or extended in java?

Current Affairs 28th February So both will print true. Calling notify method on an object. Archana Choudhury 3 years ago it is really helpful. Calling the SetPriority method on a Thread object.

We have not specified what can List list holds, so it objecctive take any kind of object except primitive. Inside a class method, when a local variable have the same name as one of the instance variable, the local variable shadows the instance variable inside the method block.

A is incorrect as it starts with a number.

Java Programming Questions and Answers

Option D is correct. Current Affairs General Knowledge. Here we use lambda expression for concreting abstract method of Multi interface. In the block form, the body is evaluated like a method body and a return statement returns control to the caller of the anonymous method.

Here, to get total execution time, we can use two java. So option A is correct. Hence the correct option is D. What is the name of the method used onjective start a thread execution? Current Affairs 27th February Calling read method on an InputStream object.