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 ›...
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 ›...
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....
Q1. What is Selenium?
A1. Selenium is a suite of tools for browser automation (i.e. automated Web testing). It is composed of
…
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,
…
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 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,
…
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 ›...
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 ›...
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 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...
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 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 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,
…
I have a good news, I got job offer. I like to share with you from my bottom of my heart feeling thankful to you.