Saturday, April 22, 2023

Difference between Filter and Listener in Servlet - Java JEE

One of the frequently asked Servlet Interview question is what is the real difference between a Filter and a Listener? What is the role they play in a Java web application? In this article, I'll try to answer these question by explain what is Servlet Filter and Servlet Listener and what are their use in Java web application. A filter is used for pre-processing and post-processing. It can intercept the request before it hits to the servlet and can modify both header and body of Servlet, hence it is used to perform login, authentication, authorization and other security aspect which is require before client can access the resource e.g. a Servlet or JSP. Similarly, filters can also intercept the response and modify both header and body of response, hence you can use it both compress and encrypt the response before sending it to the client. 

Top 15 SQL Server Management Studio (SSMS) Keyboard Shortcuts and Tips

SQL Server Management Studio, also known as SSMS is an essential tool for Microsoft SQL Server developers as well as any full-stack Java developer whose application is using SQL Server database in the backend. It allows you to connect to the MSSQL database, execute SQL queries, check execution plan, see table and schema detail, writing and debugging stored procedures, and many more features. Imagining life without SSMS for SQL Server DBA and developer is impossible. 

ByteBuffer Read Write Example in Java

Hello guys, if you have worked with Java NIO API then there is a good chance that you may be familiar with ByteBuffer, one of the important class which is used to read and write data from channels. Java NIO Buffers are used when interacting with NIO Channels like FileChannel. As you know, data is read from channels into buffers, and written from buffers into channels. A buffer is essentially a block of memory into which you can write data, which you can then later read again. This memory block is wrapped in an NIO Buffer object, which provides a set of methods that makes it easier to work with the memory block. If you compare this with traditional java.io package then you will remember that we read and write data from stream into array but in case of NIO, we read and write data from channels into ByteBuffer. 

3 ways to parse JSON String to Object in Java [Jackson, Gson, and json-simple Example]

One of the common task in Java web application, particularly the ones which deals with RESTful web services are parsing JSON messages. Many times you need to parse JSON to create a Java object like parsing a JSON message to create a POJO,  for example, an Order or a Book. Representing JSON in Java is easy, it's like a String value but unfortunately, JDK doesn't provide any standard API to parse JSON in Java. There were talks to add JSON parsing API in JDK 9 but that didn't materialize, but you don't need to worry. There are many good open-source JSON parsing libraries you can use to parse any kind of JSON in your Java program. 

Friday, April 21, 2023

101 Blockchains vs Blockchain Council Review? Which is better place to learn Blockchain Technology in 2024?

Blockchain is an interesting phenomenon that has been garnering the attention of millions of tech enthusiasts worldwide. It started off as the technology behind cryptocurrencies and has evolved as the top choice for transformation of many industries. The radical growth in popularity of blockchain supported the rise of attention towards blockchain training and certification. Since blockchain is a new technology, many beginners worry about one particular question. Where is the best place to learn blockchain? Interestingly, the variety of blockchain training and certification course providers can serve interesting options for every aspiring blockchain professional. The question regarding the best blockchain training and certification provider ultimately rounds up on a comparison between the top players in the market. Let us find out which platform can help you achieve your blockchain career objectives.

3 ways to Learn Web development in Depth in 2024

Web development has changed a lot in the recent decade. More and more frameworks and libraries have come out while the older ones are either updated or left out. For example, React and Vue has debuted in the mid-2010s and quickly became popular while AngularJS was completely re-written to survive modern web development. Today, Web development is one of the most popular domains in the IT community. Every company or product wants a website because the web is easily accessible today. Even when mobile applications are gaining popularity, the web remains at the top.

Top 20 Bootstrap Interview Questions and Answers for Web Developers

Hello guys, if you are preparing for web designer or web developer interview and looking for bootstrap interview questions, one of the popular CSS framework then you have come to the right place. Earlier,  I have shared HTML 5 Interview Questions and JavaScript Interview Questions and today, I will share 20 common Bootstrap Interview questions for 1 to 3 years experienced web designers and developers. These courses are suitable for both beginners and intermediate developers. If you have used bootstrap and CSS then you can easily answer all of these questions but if you struggle to answer any of these questions then you can always go back and checkout these best Bootstrap courses to learn and revise essential Bootstrap and CSS concepts in quick time. 

Top 20 Flutter Interview Questions and Answers for 1 to 2 Years Experienced

Hello guys, if you are preparing for Flutter and Dart Interview to become a Flutter app developer or land a job as Flutter Application developer and looking for frequently asked Flutter Interview questions with answers then you have come to the right place. Earlier, I have shared React Native Interview Questions and Android Interview Questions and in this article, I am going to share 20 common Flutter Interview Questions with Answers for you to prepare well. These Flutter Interview Questions covers essential Flutter concepts and you can use this list to quickly revise them. If you have used Flutter or worked as Flutter developer then you can easily answer these Flutter Interview Questions but if struggle to answer them then you can always go back and check these best Flutter online courses to revise essential Flutter concepts.

Top 20 Rust Interview Questions and Answers for Developers

Hello guys, if you are preparing for Rust Developer job interview and looking for Rust Programming interview questions then you have come to the right place. Earlier, I have shared best books and courses to learn Rust programming and in this article, I am going to share frequently asked Rust Interview Question. These questions covers essential Rust features and concepts and you can use this list to quickly prepare for Rust developer interviews. If you have used Rust in past or worked as Rust developer then you can easily answer these questions but if you cannot, you can always go back and join one of these best Rust online courses to learn and revise essential Rust concepts.

Spring Boot + Angular + Java Project Example and Tutorial

Hello Java programmers, if you are looking for a full-stack Java project with Spring Boot and Angular then you have come to the right place. Earlier, I have shared best Spring Boot courses, books as well as Spring boot + Reactjs project and In this tutorial, we are going to discuss how to create your first application using spring boot and angular. So we are using a simple crud application to build the application here. Here we create a School Classroom Dashboard application that can insert, update, delete and search students. The frontend of the application will be handled by angular and the backend of the system is using the spring boot. This is also a great Spring boot project beginners to do learn Spring boot better. So let's have a look into this.

Difference between Proxy and State design Pattern in Java

Hello guys, if you are preparing for Java interviews and looking for difference between Proxy and State design pattern then you have come at the right place. In the past, I have explained several important object oriented design patterns like State patttern, Strategy, Adapter, Facade, Factory, Observer, Decorator, Command, and Composite Pattern and also shared frequently asked questions on design patterns (See here) and in this article, I am going to share the key difference between Proxy and State Design Pattern in Java and OOP. The difference between Proxy and State pattern comes in both intent and structure, here are the key difference between both Proxy and State Design Pattern in Object oriented programming.

AES Encryption and Decryption in Java - AES Encoding Decoding Example Tutorial

Hello Java programmers, if you are looking for an example to encrypt and decrypt a test using the AES algorithm in Java then you have come to the right place. Earlier, I have shown you how to Base 64 encode and decode a String in Java, and in this article, I will teach you how to encode and decode a string using AES Algorithm.  If you don't know, AES stands for Advanced Encryption Standard algorithm and it is a symmetric block cipher that is used to protect classified information by many Government and Security organizations. You can use AES to encrypt sensitive data in your application config file like database password, user login details and keys etc. In our example we will be using an AES Algorithm with AES - 128, AES has a fixed block size of 128 bits. We will be using a password based secret key.

Thursday, April 20, 2023

Top 10 No Code Development Tools To Learn In 2024

As you must have guessed from the title, in this article, we will be looking at some of the best no-code development tools you can use to better understand programming. But before we get to the 10 best no-code development tools of 2024, let me tell you a bit about what no-code development really means.
No Code Development is actually a platform that can be used for building applications without any coding. Sounds pretty simple, right? You do not need to have any coding experience or knowledge to build the applications. It is helpful for programmers as well as non-programmers in creating applications. It is also closely connected to visual programming languages.

Top 5 Websites to learn Flutter for FREE in 2024 - Best of Lot

Hello guys, if you want to learn Flutter and looking for resources then you have come to the right place. Earlier, I have shared best Flutter courses and in this article, I will share best websites to learn Flutter in 2024. Flutter is an open-source framework built-in top of a programming language called Dart and developed by the google company to create a native android and iOS mobile apps as well as web applications using one base code instead of learning a bunch of languages to deliver that work. This framework has many benefits for companies and businesses since it reduces the costs and great language to build really beautiful UI design that makes people convert and use your mobile application as well it fits the screen size of every device so you don’t have to create a custom screen size for multiple mobile phones and much more just to name a few.

How to use Session attributes in Spring MVC? @SessionAttribute and @ModelAttribute Annotation Example Tutorial

Hello Java and Spring developer, if you are wondering how to use the session attribute in Spring MVC application, then you have come to the right place. In the past, I have shared how to build REST API using Spring and several other Spring tutorials like Spring Boot + React fullstack application, and in this article, I will share a couple of strategies to use session attributes in Spring MVC application. Using session attributes in Spring-MVC is a major concern in each web application as there is session management in most of the web applications right now. Because Spring MVC is such a sophisticated framework for web development, it comes with its own tools and API for working with sessions.