Blog Archives
1 2 3 4 5 6 7 9

07: Index of long consecutive characters in a string – flow control

Q. Complete the method “int startIndexOfLongestRun(String input)” that returns the start index of a character that has the longest consecutive count.



07: Tree – Sum Levels Java example

Q. Write code to traverse a tree and return the sum of the values (Node.getValue()) of all nodes at the level N in the tree?



07: What is wrong with this code? Multithreading & locks

Q. What is wrong with the following Java code? Explain what does the following code do? Explain if there is anything wrong with the following code? If there is something …



08: Jumping Frog problem in Java – Complete the given code

Q. Complete the method “int numberOfWays(int n)” where n is the distance to cover and the method should return the number of possible combinations if a frog can jump 1 …



08: Part-1: Basic Java Tree structure interview questions and coding questions

Java does not have a Tree class but you can define one. In my 10+ years as a Java developer, I have rarely used a Tree structure,  but when I …



08: What is wrong with this code? Generics

Q. Can you review the following code and see if it has any issues?



08: Write code to add, subtract, multiply, and divide given numbers?

A trivial coding example (i.e. a Calculator) tackled using the following programming paradigms in Java not only to perform well in coding interviews, but also to learn these programming paradigms.…



09: Find all permutations of a given string – best example to understand recursion

Q. Complete the method “Set getAllCombinations(String input) ” where input is any string and the method should return all possible combinations of a given string.



09: Part 2: Java Tree structure interview questions and coding questions

In the previous post entitled  Java Tree structure interview questions and coding questions — Part 1, we looked at a very simple Tree structure. In this example, let’s look at …



09: What is wrong with this code? HashMap & Race condition

Q. What is wrong with the following code snippet?



09: When to use which Java data structure? and why?

List, Set, Map, and Queue(access the ends FIFO or LIFO) are the basic Java data structure interfaces for which there are different implementations to cater for different usage patterns. Java …



1. Set up environment for home coding assignments

Step 1: Setup Java, Maven, and SonarQube

1. Java: Latest possible version. Setting up Java, Maven, and eclipse.

2. Maven 3: For building. Setting up Java, Maven, and eclipse



10 Java web services written test questions and answers

Java Web Services interview Questions & Answers Links: 6 Java RESTful Web services Interview | 11 SOAP Web service interview | 5 JAXB interview Questions & Answers | Java Web …



1 2 3 4 5 6 7 9

300+ Big Data Interview Questions - FAQs

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data