Blog Archives
1 5 6 7 8 9

Stack from scratch Java example

Q. If Java did not have a Stack implementation, how would you go about implementing your own? A. Determine the backing data structure (e.g. array, linked list, etc). Determine the …



Swap 2 values & bubble sort in Java

Q1. Can you write an algorithm to swap two values? A1.



Swapping, partitioning, and sorting algorithms in Java

Q1. Can you write an algorithm in Java to swap two variables? A1.



Two Pointers: Partitioning around a pivotal number

Q. How will you partition the following numbers 7 3 6 8 2 9 5 4 around the pivotal number of 5 so that the lower values are in front …



What is wrong with this Java code? Heap Vs Stack, Thread safety & Synchronized

This post covers must know Java Multithreading basics – Heap Vs Stack, Thread-safety & Synchronization. When you have a multithreaded Java application, you need to code in a thread-safe manner. …



Working with a given input string & character processing

Q. Complete the following StringProcessingImpl.java” class ….. so that the unit tests shown below pass?



Working with monetary values

Q. Complete the following “MonetaryProcessingImpl.java” class … so that the unit tests shown below pass? Skeleton code



1 5 6 7 8 9

300+ Big Data Interview Questions - FAQs

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data