Core Java Career Essentials -- Java developer job Interview Questions
The “Core Java Career Essentials” book has been published, and available via Amazon.com and Lulu.com (PDFs). 250+ technical, open-ended, coding, scenario based, and frequently asked questions are answered with lots of examples and code snippets not only for interview preparation, but also to clarify your fundamentals and progress in your career. Some of the popular questions answered in the “Core Java Career Essentials” are:
- Can you list the Java SE features you really love and why?
- Can you list the Java SE features you like to be added in the future?
- What are your favorite areas of the Java APIs and why?
- What are some of the very common runtime (or unchecked) exceptions you have come across in Java? When is a ConcurrentModificationException thrown?
- In your experience, what are some of the most common errors Java programmers make?
- Can you give some examples of where you used “sed” and “awk” utilities?
- What tools do you generally need to get your job done?
- What do you expect to see in a high level or detailed technical specification document?
- How will you ensure quality of your design and code?
- Can you list some of the key aspects you keep in mind while coding to ensure quality & robustness?
- What does the following code do? Can you talk us through the code highlighting some of the key language and design features? ….....
- Can you explain why the code snippet under (a) gives a compile-time error and code snippet under (b) compiles and runs with an output of 20? ….....
- What is wrong with the following code, and how will you fix it?
- Can you list some practical applications where the bit-wise operations can be applied?
- How would you take advantage of Java being a stack based language? What is a re-entrant method?
- Can you explain if the following classes are badly designed?
- What do you achieve through good class and interface design?
- How will you improve on the following code snippets with appropriate design principles? ….
- How would you go about designing a system as described below? ….....
- How would you go about designing a car parking station?
- Can you talk through the output of the following code snippet?.....
- How do you know if your garbage collector is under heavy use? What are the best practices to minimize heavy use of garbage collection?
- If you have large if-else or switch-case statements, what would come to your mind?
- What are the common data structures, and where would you use them?
- What do you know about the big-O notation and can you give some examples with respect to different data structures?
- What is the tradeoff between using an unordered array versus an ordered array?If Java did not have a HashMap implementation, how would you go about writing your own one?
- Can you write an algorithm to.....?
- Write a program that allows you to create an integer array of 5 elements with the following values: int numbers[ ]={5,2,4,3,1}. The program computes the sum of first 5 elements and stores them at element 6, computes the average and stores it at element 7 and identifies the smallest value from the array and stores it at element 8.
- Can you write a code to evaluate( ) a simple mathematical calculation as shown below using a binary tree?
- Can you suggest the most appropriate data structure for each of the following scenarios given below? …......
- What do you understand by greedy, reluctant, and possessive quantifiers? What do you understand by the term “backtracking”?
- Can your write a function that will replace all tokens delimited by @ with a given String?
Sample Input = “Hello @name@, where are you @name@?”
Why should you favor composition over inheritance?
Why should you favor composition over inheritance?
Labels: Core Java