1 / 1

What are the trickiest Java questions

These questions are mostly from Core Java and not included J2EE questions. You may know answers of these tough Java question or you may not even find it tough enough to challenge your Java knowledge but once upon a time these were asked in various Java interview.

edukot
Download Presentation

What are the trickiest Java questions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What are the trickiest Java questions? Here is the list of tricky Java questions. These questions are mostly from Core Java and not included J2EE questions. You may know answers of these tough Java question or you may not even find it tough enough to challenge your Java knowledge but once upon a time these were asked in various Java interview. Questions: 1.Why wait and notify is declared in Object class instead of Thread ? 2.Why is multiple inheritances not supported in Java ? 3.Why does Java not support operator overloading ? 4.Why is String immutable in Java? 5.Why char array is preferred to store password than String in Java? 6.How to create a thread-safe singleton in Java using double-checked locking? 7.Write Java program to create a deadlock in Java and fix it ? 8.What happens if your Serializable class contains a member which is not serializable? How do you fix it? 9.Why wait and notify called from synchronized method in Java? 10.Can you override static method in Java? If I create the same method in the subclass is it compile time error?

More Related