Blog Archives
1 22 23 24 25 26 27 28

Reverse Polish Notation (RPN)

Q1. Can you explain Reverse Polish Notation (RPN)? A1. You have already heard about the following from your elementary schooling: “Please Excuse My Dear Aunt Sally” … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


SDLC process interview Q&As

No right or wrong answers. The depth and quality of the answers will can prove your seniority and experience. Q1. What are the SDLC activities you perform as a Java developer? A1. Don’t get overwhelmed by this activities list. This proves why employers favor experience to just academic qualifications alone....

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Selenium and Web Driver Interview Questions and Answers

Q1. What is Selenium?
A1. Selenium is a suite of tools for browser automation (i.e. automated Web testing). It is composed of

  • Selenium IDE: A tool for recording and playing back. This is a Fire-fox plugin.
  • WebDriver and RC provide the APIs for a variety of languages like Java,

Read more ›



Simple caching Java application step by step

Problem Statement: How would you go about writing an application in Java where employee id to department name lookup is cached instead of reading from a database or an API. The cache needs to be refreshed every 1 minute.

Solution, step by step

Step 1: Firstly,

Read more ›



Single Pointer: 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 of it and higher values are behind it? A. A single pointer can be used by moving from left to...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Sorting a list of numbers by frequencies in Java using a BST tree

This extends Sorting a list of numbers by frequencies in Java using a map to use a BST instead of a Map.

PROBLEM to solve: Sort a list of numbers by frequency of their occurrences. For example

INPUT: [ 5,

Read more ›



Sorting a list of numbers by frequencies in Java using a map

PROBLEM to solve: Sort a a list of numbers by frequency of their occurrences. For example INPUT: [ 5, 3, 7, 7, 7, 5, 4, 8 ] OUTPUT: [7, 7, 7, 5, 5, 3, 4, 8] ALGORITHM to use 1. … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Sorting by reversing the entries in Java

Q. You need to sort an array of integers by repeatedly reversing the order of the first several elements of it. you always have to flip from the beginning element, you cannot flip elements 2 and 3. For example, input: [10,30,20] [10,30,20] –> … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Splitting input text & string processing coding Q&A

Q1. Can you write code to extract numbers from a given input text and return the sum of those numbers? Example: “1 some text 2 more text 4 more text 8” should return 15 as the sum. A The key steps are: 1. … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Spring Boot Exception handling Interview Q&As

This extends Spring Boot annotations interview Q&As and Java exception handling interview questions and answers. Q01. What is exception handling & why is it important? A01. In Java, Exceptions are objects that are thrown when an error or unexpected situation occurs during the execution of a program. … Read more...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Spring Boot in unit testing – 6 things you must know

Q1. What are some of the libraries required for unit testing Spring based Java applications? A1. Spring Test — integration test support for Spring applications. 1. JUnit — for unit testing Java applications. 2. … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Spring Cloud Microservices interview Q&As

This extends 15 Spring Boot interview questions & answers. Spring Boot & Spring Cloud are used for building Microservices architecture. Q1. What is Spring Cloud? A1. Spring Boot is widely used to develop MicroServices. As many organisations deploy these services on the cloud like AWS, … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


Spring Controller Unit Testing

This Spring controller unit test is based on

HATEOAS RESTFul Service with Spring tutorial. The request URL and JSON response content are shown below.

REQUEST URL: http://localhost:8080/simpleSpring/greeting?name=John
RESPONSE JSON: {“content”:”Hello, John!”,”links”:[{“rel”:”self”,”href”:”http://localhost:8080/simpleSpring/greeting?name=John”}]}

REQUEST URL: http://localhost:8080/simpleSpring/greeting
RESPONSE JSON:{“content”:”Hello,

Read more ›



1 22 23 24 25 26 27 28

300+ Java Interview FAQs

Tutorials on Java & Big Data