Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
How to sort ArrayList in Java? Examples
What is final modifier in Java? fina class, method, and variable example
Best way to Convert Integer to String in Java with Example
How to create a ZIP File in Java? ZipEntry and ZipOutputStream Compression Example
How to add JAR files in Eclipse Project's Build path? Example
5 Tips to Fix Exception in thread "main" java.lang.NoClassDefFoundError in Java, Examples
The Exception in thread "main" java.lang.NoClassDefFoundError is a common error in Java that occurs if a ClassLoader cannot find a particular class in the classpath while trying to load it. The Exception in thread "main" suggests that this error has occurred in the main thread, the thread which is responsible for running the Java application. This error can occur to any thread, but if it happens in the main thread, then your program will crash because Java program runs only until main() thread is running or any other non-daemon thread is running. As per Javadoc, NoClassDefFoundError can be thrown during the linking or loading of the class file.
14 Enum Interview Questions and Answers for 1 to 2 Years Experienced Java Programmers
How to convert String to char in Java? Example Tutorial
How to get current TimeStamp value in Java? Example
5 Difference between String, StringBuffer, and StringBuilder in Java
Difference between include() and forward() methods of RequestDispatcher in Servlert
Base64 Encoding and Decoding Examples in Java 8 and Before
How Java achieves platform independence? Answer
10 Difference between Struts 1.x and Struts 2.x framework in Java
When You should Not use Microservice Architecture? (Answer)
Hello guys, recently while giving interview in one of the big US based Investment bank I was asked about, what are the scenarios when you shouldn't be using Microservices architecture? When I hear this question I was big surprised not because I didn't know the answer but because most of the people ask about using Microservice architecture and this was the first time I am hearing otherwise. To be honest, it's a good question because most of the candidate will prepare about benefirst about Microservice architecture and they may not know when it's not appropriate to use it. Since I have worked in low latency high frequency application, I knew that multiple process means more latency so clearly a Microservices is a big no if you are working on a high frequency low latency application. In those cases you want to do all your calculations inside a single thread or process without even swapping memory to avoid delay. Hence the first answer to this question was, you shouldn't be using Microservice in a low latency application.