Spring Security Interview Questions

Below is a list of questions asked frequently during technical interviews on the topic of Spring security. For details and usage of spring security concepts in real-world examples, please check-out these posts: Secure a REST ServiceBasic HTTP Authentication What is Spring Security? Spring security is a customizable framework to provide authentication (establishing that user/device credentials … [Read more…]

Like this post? Don’t forget to share it!

MICROSERVICES INTERVIEW QUESTIONS

1.    What is Spring Boot? To start a new Spring project one has to add the maven dependencies or the build path, add configurations, configure the application server, etc. Therefore, it requires some efforts from the developer before actually starting the project from scratch. Here, Spring Boot comes into action and provides automation for these … [Read more…]

Like this post? Don’t forget to share it!

Convert Array to Streams in Java 8

A new abstract layer was introduced in Java 8 called ‘Stream’.   With the help you Stream, data can be processed in a declarative way which is quite comparable to SQL statements. Stream basically represents a chain of objects from a particular source that supports aggregate operations. The characteristics of Stream are mentioned below: Sequence of … [Read more…]

Like this post? Don’t forget to share it!

Software development cycle and the importance of agile testing

In today’s busy world, we want everything to be better, faster, and easier to use. Similarly, the software realm is also undergoing a revolution where consumers are always on the lookout for an outstanding product which is worth their time and money. But how do businesses keep up with the competition and still be more … [Read more…]

Like this post? Don’t forget to share it!

Collectors toCollection(Supplier collectionFactory) example – Java 8 Streams

Collectors toCollection(Supplier<C> collectionFactory)  Returns a Collector that accumulates the input elements into a new Collection, in encounter order. The Collection is created by the provided factory. Collectors toCollection() Examples Example 1 Output is: Example 2 : Easy create a list and add one item Output is:

Like this post? Don’t forget to share it!

JShell – Java 9 REPL

Introduction Java is soon to release its new version – Java 9 with lots of exciting new features which will make our programming more easy and fast. The new Java release is everything about Project Jigsaw whose aim is to make the Java SE Platform and JDK more scalable for small computing devices. It will … [Read more…]

Like this post? Don’t forget to share it!

Java Collections interview questions and answers

Here is the list of Java Collections interview questions. These questions have been asked over time and are still being asked in interviews. It is good to go through them to understand the various concepts in Collections. Java Collections Interview Questions and Answers What is a HashSet and how does it work internally in Java? … [Read more…]

Like this post? Don’t forget to share it!

Top 15 Core Java Interview Questions

Here is a list of core java interview questions.  These are questions that touch the basics of Java language. And it is good to know them even if you are not attending an interview. Q) Describe the contract of equals() and hashCode(). Why is it important that if you implement one, then you must implement … [Read more…]

Like this post? Don’t forget to share it!

Just-In-Time (JIT) Compiler

1. Overview The Just-In-Time (JIT) compiler, which is commonly referred as JIT Compiler, is a part of Java Runtime Environment (JRE). JIT improves the performance of Java applications at runtime. In computing JIT compilation, which is also known as “Dynamic Translations” is compilation done during execution of a program. The traditional Java compiler compiles high-level Java … [Read more…]

Like this post? Don’t forget to share it!

Difference Between List, Set and Map in Java

List vs Set vs Map

1. Overview List, Set and Map in java are the most used interfaces of the collection framework. Collection framework has several interfaces and classes which are widely used in most java application. For storing data in collections, List, Set and Map are most often used interfaces. A difference between these interfaces is one of the … [Read more…]

Like this post? Don’t forget to share it!