Blog Archives
1 2 3 4 5 6 7 28

01: Can you design classes & interfaces using OO?

Q1. How would you go about designing a “farm animals” application where animals like cow, pig, horse, etc move from a barn to pasture, a stable to paddock, etc? The solution should also cater for extension into other types of animals like circus animals, wild animals, etc in the future....

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


01: High level & low level system design considerations for read heavy systems

Q1. What are some of the design considerations for a read heavy system? A1. Before designing any systems, one should gather the functional & non-functional requirements. The SLAs (i.e. Service Level Agreements) have to be clearly defined. A rough-cut capacity planning has to be done in terms of how many...

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


01: High level & low level system design considerations for write heavy systems

This extends High level & low level system design considerations for read heavy systems Q1. What are some of the design considerations for a write heavy system? A1. Before designing any systems, one should gather the functional & … 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


01: Java 9+ modules interview Q&As

Q01. What is a module in Java? A01. You can think of the Java Platform Module System (JPMS) as a higher level of aggregation above packages. A Java module is a set of packages that declares which of them form an API accessible to other modules and which are internal...

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


01: JMockit interview Q&As & examples on @Injectable Vs @Mocked Vs @Capturing Vs @Tested

This extends 6 JUnit & JMockit interview questions & answers on Java Unit testing – Part 1. It is very essential to understand how these 3 annotations work in JMockit to write unit tests quickly & effectively.

Q1 What is the difference between @Injectable and @Mocked in JMockit?

Read more ›



01: JUnit with Mockito tutorial step by step

JUnit with Mockito tutorial step by step. Mockito is a popular mocking framework used along with JUnit. JMockit is more popular than Mockito.

Step 1: Create a simple maven project say “code-quality”

Step 2: Import into eclipse.

Read more ›



01: jvisualvm tutorial to sample Java heap memory

Java does not have a sizeof operator like C++ does. Java uses automatic memory management known as the Garbage Collection, hence it is not that important to evaluate size of various objects. But, for the purpose of learning & fixing any potential memory issues, I have used “jvisualvm”, … Read...

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


01: Mockito interview Q&As & examples on @Mock, @Spy, @Captor and @InjectMocks

Firstly, you need the pom.xml entry to bring in the Mockito library.

@InjectMocks

Firstly, annotate the Test class with @RunWith(MockitoJUnitRunner.class) as shown below. The @InjectMocks annotation creates an instance of the class and injects the mocks that are created with the @Mock (or @Spy) annotations into this instance.

Read more ›



01: Networking basics interview Q&As on ip address, subnet mask, DNS & gateway

Q. Do software developers & Architects need to know networking? A. The answer is Yes for both, but architects must know certain concepts more than the developers. Architects need to liaise with network, cloud, dev ops, and site engineers. Networking is a very vast subject. … 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


01: Q01 – Q07 Spring framework core interview Q&As

Spring framework interview questions are very common for the Java programmer jobs. This covers Spring framework beginner interview questions on the Spring core and more advanced Spring framework interview questions at Java microservices interview questions.

Q1. What do you understand by the terms Dependency Inversion Principle (DIP),

Read more ›



01: Q07 – Q12 Microservices Interview questions & answers

60+ microservices interview questions & answers covering Spring boot, Spring cloud, and microservices design patterns. If you are an enterprise Java developer, then most likely you will be developing Microservices using Spring boot. Let’s start with the beginner microservices interview questions & then get to much needed 20+ microservices design...

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


01: Q13 “12 Rules” for REST API design & development

These are more like rules to develop RESTFul web services as opposed to being the best practices. REST is an architectural style without any contracts or specifications. So, it is imperative to apply the following rules for better REST API design. #1. Write stateless RESTFul services This means each request...

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


01: Spring DI & IoC interview Q&As

Video: Spring DIP, DI, and IoC. This extends 13 Spring interview questions & answers.

Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container?

Read more ›



1 2 3 4 5 6 7 28

300+ Java Interview FAQs

Tutorials on Java & Big Data