Q01: Why do you need sealed classes when you have the final modifier? A01: The final modifier on a class doesn’t allow anyone to extend it. What if you want to extend a class, but only allow it for some classes? … Read more ›...
Q01: Why do you need sealed classes when you have the final modifier? A01: The final modifier on a class doesn’t allow anyone to extend it. What if you want to extend a class, but only allow it for some classes? … Read more ›...
Q01. What is a Service in Kubernetes? A01. A Kubernetes service is a logical abstraction for a deployed group of pods in a cluster that perform the same function. Why do you need a service object? Why do you need a service object in k8s when each pod gets its...
This extends 04: Microservices Architecture design patterns & considerations interview Q&As – Part 3. 4. Observability patterns Microservices require various cross-cutting concerns such as metrics, reporting exceptions to an exception tracker, logging, distributed tracing, health checks, externalised configuration, and security. Additionally, a service may need to handle service discovery and...
A software application is built by coupling various classes, modules, and components. Without coupling, you can’t build a software system. But, the software applications are always subject to changes and enhancements. So, you need to build your applications such a way that they can not only adapt to growing requirements,...
The high level pattern for the RESTful URI is http(s)://myserver.com:8080/app-name/{version-no}/{domain}/{rest-reource-convetion} For example: http(s)://myserver.com:8080/accounting-services/1.0/forecasting/accounts to list … Read more ›...
Q1. What’s wrong with Servlets? What is a JSP? What is it used for? What do you know about model 0 (aka MVC0), model 1 (aka MVC1) and model 2 (aka MVC2) patterns? In “model 2” architecture, if you set a request attribute in your JSP, … Read more ›...
Q01. What is a Helm chart in Kubernetes? A01. A Helm chart is a package manager for Kubernetes. A chart is a collection of files that describe a related set of Kubernetes resources. It contains all the necessary resources to deploy an application to a Kubernetes cluster. … Read more...
Design principles interview questions & answers for Java developers so that you can expand your OOP skills to design robust Java apps Q25. What are the SOLID design principles? A25. SOLID is an abbreviation for 5 design principles. SRP (Single Responsibility Principle) If you have a class with calculation logic,...
Q1. What is HATEOAS? How does it provide state transition, scalability, and loose coupling? A1. HATEOAS (Hypermedia as the Engine of Application State) is considered the final level of REST. This means that each link is presumed to implement the standard REST verbs of GET, … Read more ›...
Experienced developers know what tools to use to get the job done. I often forget code quality tool names like Sonar, FindBugs, Crucible, etc, penetration testing tools like Skipfish, and ETL tools like Datastage to name a few. So, it is worth refreshing your memory prior to job interviews. Eclipse/IntelliJ/NetBeans:...
Q01: What is a JShell in Java? A01: JShell was introduced in Java 9, and it is a Read-Evaluate-Print-Loop (aka REPL). It provides an interactive shell for quickly prototyping, debugging, and learning Java and Java APIs. … Read more ›...
Tip #1: Tightly encapsulate your classes. A class generally contains data as well as methods, and is responsible for the integrity of its own data. The standard way to protect the data is to make it private, so that no other class can get direct access to it, … Read more...
Q01: What are virtual threads in Java? A01: Virtual threads in Java are analogous to goroutines in the Go language. The virtual threads are a new type of thread that tries to overcome the resource limitation problem of platform threads by storing the stack frames in the heap, … Read...
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.