Tuesday, September 12, 2023

How to design a Limit Order Book in Java? System Design Question from Investment Bank

No doubt that Data structure and algorithms are an integral part of any Programming job interview, including Java, C++, or any other programming language. In fact, Data structure and algorithms are quite a favorite one and all top-notch companies including Google, Microsoft, Amazon, and investment banks like Goldman Sachs, Citigroup, Barclays, Morgan Stanley or J.P. Morgan focus extensively on data structure and algorithms while hiring both senior and mid-level developers in Java, C++, and C# positions.

Top 30 Microsoft Interview Questions for Software Development Engineers (SDE)

Hello guys, if you are preparing for Microsoft's Software Development Engineer interview (SDE) and looking for some good resources for your preparation then you have come to the right place. In the past, I have shared best coding interview books, courses, and websites and in this article, I am going to some frequently asked Microsoft Interview Questions and useful books and courses to prepare for their Software Development Engineer role. I am mostly sharing technical questions which are based upon Data structure and Algorithms, and Software design. They don't put any restrictions on any programming language, which means you are free to solve these problems using C, C++, Java, or Python.

Top 13 REST Web Services Framework Interview Questions Answers

Hello guys, today's world is about Microservices and REST architecture is the one which powers Microservices. REST web services have quickly become the defacto web services in the web development world and have almost replaced SOAP-based web services that rule the world before. With the growing use of REST APIs in web technology space REST is also becoming increasingly important on J2EE and other web development interviews and if you say you know web-service then be prepare for some REST concept related questions. 

Top 10 Google Interview Questions for Software Engineer - Books, Resources

Hello guys, if you are preparing for Google's Software Development Engineer roles and looking or Google Software Interview questions then you have come to the right place. Earlier, I have shred Amazon and Microsoft Interview questions and in this article, I am going to share popular questions from Google Interviews. These Google interview questions are some of my favorites collected from different sources. Every Programmer knows that Google is one of the best technology companies and its dream for many software developers to work for Google, but at the same time interview process at Google is very tough and only a few genuine intelligent programmers get through their interview process. 

Top 15 Java ClassLoader Interview Questions and Answers for Experienced Programmers

Hello guys, if you are preparing for Java interviews and want to refresh your knowledge of Classloaders in Java then you have come to the right place. Earlier, I have shared Java interview questions on Collections, Multithreading, Serialization, and Generics, and in this article, I am going to share frequently asked Java interview questions about class loaders. If you don't know, a class loader is a program that loads classes in Java programs. The mechanism of class loading is very important to understand how the Java program works. When you run a Java program you give the name of the main class, from their onwards, built-in classloaders like Bootstrap classloader start loading not just the main classes but other Java library classes which is required to run that program. 

Top 10 Hibernate Interview Questions and Answers for 3 to 5 Years Experienced Java Developers

Hibernate Interview Questions are asked on Java J2EE Interviews, mostly for web-based enterprise application development roles. The success and acceptability of Hibernate framework on the Java world have made it one of the most popular Objects Relational Mapping (ORM) solutions in the Java technology stack. Hibernate frees you from database-specific coding and allows you to focus more on utilizing powerful object-oriented design principles to implement core business logic. By using Hibernate you can switch between databases rather easily and also take advantage of out-of-box caching facilities provided by Hibernate, in terms of second-level cache and query cache.

Monday, September 11, 2023

How to use window functions in SQL? Row_number Example Tutorial

Hi folks, In Today's article we shall be talking about the windows function in SQL, How to use a Windows function, and when to use Windows functions. And lastly, the Difference between windows and aggregate Functions.In SQL world, the ability to transform data with precision and finesse is a hallmark of skilled database professionals. One tool that often stands out in this endeavor is the window function, a potent feature that enables complex data analysis and manipulation within SQL queries. Among the arsenal of window functions, ROW_NUMBER() emerges as a versatile choice, allowing you to assign unique row numbers to result sets based on defined criteria.

Top 20 jQuery Interview Questions and Answers for 1 to 3 Years Experienced

Without a doubt, jQuery has given a much-needed boost to JavaScript, a language so useful but equally underrated at times. Before jQuery comes into the picture, we used to write lengthy JavaScript code not just for bigger but even for smaller functions. Those codes were at times both difficult to read and maintain. Having written JavaScript before using this excellent library, I realized the true power of jQuery, just after using it for a month. Given its huge popularity, jQuery interview questions are increasingly asked in any web developer interview, not just beginners but also experienced developers, including HTML and JavaScript.

Top 20 Spring MVC Interview Questions with Answers for Java Web Developers

The Spring MVC framework is one of the most popular Java frameworks for developing web applications. If you have been working in Java and developing web-based applications then there is a good chance that you have already used Spring MVC in your project. In the last decade, it has become the de facto framework for developing Java web applications. Spring MVC is based on a classic MVC (Model-View-Controller) design pattern but it is much more than that. It leverages, Spring framework's strength in terms of dependency injection and Inversion of control and promotes loosely coupled architecture, similar to the Spring framework itself. Because of its immense popularity and usefulness, most of the Java development job requires a good knowledge of Spring and Spring MVC.

How do you find length of a Singly Linked list using Loop and Recursion? Example

Hello guys, here is one of the classical programming questions how do you find the length of a linked list using recursion and without recursion. This is not about the LinkedList class of Java API but the linked list data structure, which is made of nodes that contain both data and the address of the next node. In order to calculate the length, you need to count all nodes in the linked list. Since it's a singly linked list you can only move in one direction from the head to tail.  This coding problem was asked to me on my first interview with a multinational Investment bank. After that, this question has been asked to me on several occasions in other Programming Job Interviews as well.

Difference between WeakReference vs SoftReference vs PhantomReference in Java? Example

WeakReference and SoftReference were added into Java API for a long time but not every Java programmer is familiar with it. This means there is a gap between where and how to use WeakReference and SoftReference in Java. Reference classes are particularly important in the context of How Garbage collection works. As we all know that Garbage Collector reclaims memory from objects which are eligible for garbage collection, but not many programmers know that this eligibility is decided based upon which kind of references are pointing to that object. This is also the main difference between WeakReference and SoftReference in Java.

Difference between include directive and include action in JSP Servlet? Example

Difference between include directive and include action is one of the most popular JSP interview questions and also asked as What is the difference between page include and file include in JSP.  Similar to the difference between forward and send redirect and URL encoding vs URL rewriting, this is also asked at a beginner level. Here we will see page include vs file include in detail. Both include directive and include action is used to include the output of a static page e.g. HTML or a dynamic page like jsp inside another jsp file.

Sunday, September 10, 2023

Top 30 Scala and Functional Programming Interview Questions and Answers

Hello guys, if you are preparing for Scala Developer interview and looking for frequently asked Scala questions for practice then you have come to the right place. Earlier, I have shared best Scala courses, Scala books, and best Scala Frameworks and in this article, I am going to share 30 Scala Questions from past interviews. Scala is a programming language which aims to provide best of both object-oriented programming and functional programming world. It not only allows you to  construct elegant class hierarchies for maximum code reuse and extensibility but also allows you to implement their behavior using higher-order functions and other functional programming technique. It is touted as one of the languages which can probably take over Java, though it didn't happen especially after Java 8 release which also provides some functional programming tools to Java e.g. lambda expression and stream. 

Top 20 JUnit Testing Interview Questions with Answers for Java Programmers

Hello guys, if you are preparing for a Java programming interview and looking for some JUnit and testing interview questions then you have come to the right place. Earlier, I have shared the best JUnit and TDD courses and books, and, today, I am going to share some JUnit interview questions for Java developers. There is no doubt that JUnit is the defacto standard framework for writing unit tests in Java and every professional developer must be familiar with JUnit. Not long ago, you can clear Java interviews without writing a single line of code, forget about tests but not many more. More and more companies are including coding tests and take-home tests where you need to build solutions and write code with tests on their hiring process. 

Top 10 Puzzles, Riddles, Logical, and Lateral Thinking Questions for Programming Job Interviews

Puzzles, riddles, logical questions, and lateral thinking questions are an integral part of any programming job interviews. I missed to include some puzzles when I shared my list of top 30 programming interview questions earlier, and a couple of my friends requested to share some puzzles as well. These puzzles and lateral thinking questions are mostly collected from various Java programming interviews on Investment banks, but they are equally useful for any programming job interviews. I have seen more puzzles and logical questions at the junior level i.e. 2 to 4 years.