JSP is still a popular technology for developing view part of Struts and Spring-based Java applications, but unfortunately, it doesn't have rich UI support available in GWT, or any other library. On another day, we had a requirement to display HTML tables inside tabs, basically, we had two tables of different data set and we need to display them in their own tabs. Users can navigate from one tab to another, and CSS should take care of which tab is currently selected, by highlighting the active tab. Like many Java developers, our hands-on HTML, CSS, and JavaScript are a little bit tight than a web guy, and since our application is not using any UI framework, we had to rely on JSP to do this job.
Sunday, June 26, 2022
How to use Adapter Design Pattern in Java with Example
The adapter design pattern in Java, also known as the Wrapper pattern is another very useful GOF pattern, which helps to bridge the gap between two classes in Java. As per the list of Gang of Four patterns, the Adapter is a structural pattern, much like Proxy, Flyweight, Facade, and Decorator patterns in Java. As the name suggests, the Adapter allows two classes of a different interface to work together, without changing any code on either side. You can view the Adapter pattern as a central piece of the puzzle, which joins two pieces, which can not be directly joined because of different interfaces.
Labels:
design patterns
,
java
Thursday, June 16, 2022
java.lang.UnsatisfiedLinkError: no dll in java.library.path - Cause and Solution
"Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path" is one of the frustrating errors you will get if your application is using native libraries like the DLL in Windows or .SO files in Linux. Java loads native libraries at runtime from either PATH environment variable or location specified by java.library.path system property depending upon whether your Java program is using System.load() or java.lang.System.loadLibarray() method to load native libraries. If Java doesn't find them due to any reason it throws "java.lang.UnsatisfiedLinkError: no dll in java.library.path".
Labels:
core java
,
error and exception
Spring Boot Error - Error creating a bean with name 'dataSource' defined in class path resource DataSourceAutoConfiguration
Hello guys, If you are using Spring Boot and getting errors like "Cannot determine embedded database driver class for database type NONE" or "Error creating a bean with name 'dataSource' defined in class path resource ataSourceAutoConfiguration" then you have come to the right place. In this article, we'll examine different scenarios on which this Spring Boot error comes and what you can do to solve them. The general reason for this error is Spring Boot's auto-configuration, which is trying to automatically configure a DataSource for you but doesn't have enough information. It is automatically trying to create an instance of DataSourceAutoConfiguration bean and it's failing.
Labels:
error and exception
,
spring
,
spring boot
Difference between WHERE vs HAVING clause in SQL - GROUP BY Comparison with Example
What is the difference between WHERE and HAVING clause in SQL is one of the most popular questions asked on SQL and database interviews, especially to beginners? Since programming jobs, required more than one skill, it’s quite common to see a couple of SQL Interview questions in Java and .NET interviews. By the way unlike any other question, not many Java programmers or dot net developers, who are supposed to have knowledge of basic SQL, fail to answer this question. Though almost half of the programmer says that WHERE is used in any SELECT query, while HAVING clause is only used in SELECT queries, which contains aggregate function or group by clause, which is correct.
Monday, June 13, 2022
Top 5 Software Platforms to Create and Sell Online Courses in 2024 - Best of Lot
Hello guys, if you are an online course creator, instructor, or blogger looking for best software and online platform to create, and sell your online courses then you have come to the right place. In the past, I have how shown you how to create online course for FREE and In this article, I am going to share the best software to create and sell your online training courses. You will learn about the best online teaching Software and platforms like Teachable, Thinkific, Udemy, and Podia and analyze them to find out which is best software for creating and selling online courses. Online Course business is becoming bigger and bigger with so many bloggers, professionals, programmers are creating online courses and making good money. It's a new avenue for passive income creators and I think it's one of the best I know. Why? because it's a win-win for everybody.
Sunday, June 12, 2022
How to Create Online Course for FREE? Best Tools, Software and Platforms
Hello guys, I have been telling my readers and fellow programmers to create an online course in 2022, and many of them have already started planning their courses. Though, one question which keeps coming to me is how you can create an online course for free? This is an obvious question, and after answering many of my readers over Facebook chats and emails, I decided to write a blog post about it so that everyone else who wants to create an online course for free can create and sell online courses for free without any investment except time and passion can benefit. But, before answering this question, let me first congratulate you on making an excellent decision to create an online course, the best win-win situation where everybody involved in this process wins.
Saturday, June 4, 2022
Top 6 Websites to learn Blockchain for FREE in 2024 - Best of Lot
Hello guys, if you want to learn Blockchain in 2024 and looking for best website to learn Blockchain for FREE then you have come to the right place. In the past, I have shared best Blockchain books, best Blockchain course, and best Blockchain certification, and in this article, I am going to share best places to learn Blockchain for FREE. Blockchain is a newbie technology that is gaining popularity in the marketplace. If you wish to pursue a career in this field, you must first get a thorough understanding of blockchain technology. Online certification courses can equip you with both academic and practical understanding since it is a sophisticated and relatively new technology.
Labels:
best of javarevisited
,
Blockchain
,
free resources
Top 10 Pluralsight Courses for Cyber Security Professionals in 2024 - Best of Lot
Hello guys if you are looking for best Pluralsight courses to learn Cyber
Security and Information Security in 2024 then you have come to the right
place. In the past, I have shared
best Cyber Security Courses
and
best Ethical Hacking Courses
and today, I am going to share best Pluralsight courses for Cyber Security
Professionals in 2024. The list includes courses to learn Cyber Security from
scratch and in depth. I have specially included courses on important Cyber
Security topics and tools like Malware detection and prevention. You can also
use this list as a reference and learn the skills you need and become a better
Cyber Security Professional in 2024.
Labels:
courses
,
Cyber Security
,
Pluralsight
Friday, June 3, 2022
Top 10 Essential Skills to become a Better Data Scientist in 2024
Hello guys, if you want to become a Data Scientist but not sure which skills
to learn then you have come to the right place. Earlier, I have shared
best Data Science courses,
tutorials,
books, and
best sites to learn Data Science online, and in this article, I will share essentials skills you can learn to become
a successful Data Scientist in 2024. Since just knowing the skill is not
enough, I have also shared relevant courses to learn those skills from Udemy,
Coursera, Pluralsight and other popular online learning portals, as its more
important to learn those skills rather than just knowing it. It's more likely
that you already know many of them like Mathematics, Statistics, SQL, and
Problem Solving but knowing where to go to refresh and hone those skills can
help you to become better.
Labels:
best of javarevisited
,
Data Science
Thursday, May 26, 2022
5 Best Programming Languages To Start Your Career in Software Development and Best Courses To Learn Them
Hello guys, If you want to become a Programmer or Software developer in 2022, you should be an expert in not one, but multiple programming languages. It is an absolute necessity to be skilled and fluent in more than one programming language. But which programming languages should you master, you might be asking. Well, don't worry. We have got your back. Gone are the time when you can just learn one programming language like Python, Java, or JavaScript and done, nowadays every job demands more and there is always a couple of programming language you can find in job description.
Labels:
best of javarevisited
,
programming
,
python
Wednesday, May 25, 2022
How to Set Classpath for Java on Windows and Linux? Steps and Example
What is CLASSPATH in Java? Classpath in Java is the path to the directory or list of the directory which is used by ClassLoaders to find and load classes in the Java program. Classpath can be specified using CLASSPATH environment variable which is case insensitive, -cp or -classpath command-line option or Class-Path attribute in manifest.mf file inside the JAR file in Java. In this Java tutorial, we will learn What is Classpath in Java, how Java resolves classpath and how Classpath works in Java alongside How to set the classpath for Java in Windows and UNIX environment.
Labels:
core java
,
core java interview question
,
Java basics
,
programming
Monday, May 23, 2022
Difference between Direct, Non Direct and Mapped ByteBuffer in Java?
ByteBuffer is one of the important classes of Java NIO API. It was introduced in java.nio package on JDK 1.4, it not only allows you to operate on heap byte arrays but also with direct memory, which resides outside the JVM. There are mainly three types of ByteBuffer in Java - Direct Byte Buffer, Non-Direct ByteBuffer, and mapped byte buffers. You can create both direct and non-direct buffers using java.nio.ByteBuffer class, while MappedByteBuffer is a subclass of ByteBuffer, which is created by FileChannel.map() method, to operate on memory-mapped file.
Labels:
java IO tutorial
,
Java NIO Tutorial
Wednesday, May 11, 2022
String vs StringBuffer vs StringBuilder in Java? Example
Difference between String, StringBuffer, and StringBuilder
The String is one of the most important classes in Java and anyone who starts with Java programming uses String to print something on the console by using famous System.out.println() statements. Many Java beginners are not aware that String is immutable and final in Java and every modification in String creates a new String object. For example, when you get the substring, you get a new String, when you convert uppercase String to lowercase, a new String is created. Even when you remove space by calling the trim() method, a new String is returned.
Labels:
core java
,
core java interview question
,
String
Sunday, May 8, 2022
Java 8 forEach() Loop Example
Java 8 has introduced a new way to loop over a List or Collection, by using the forEach() method of the new Stream class. You can iterate over any Collection like List, Set, or Map by converting them into a java.util.sttream.Stream instance and then calling the forEach() method. This method performs given operation on every element of Stream, which can be either simply printing it or doing something else. Since stream can be sequential or parallel, the behavior of if this method is not deterministic if used with a parallel stream.
Labels:
Java 8
Subscribe to:
Posts
(
Atom
)