Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Wednesday, January 31, 2024
Top 5 Design Patterns Books for Java Developers - Best of Lot
Monday, January 29, 2024
Top 5 Books to learn SQL and Database Design in 2024 - Best of Lot
Sunday, January 28, 2024
Top 10 Free Python Programming Books - Download PDF or Read Online
Saturday, January 27, 2024
Top 6 Django Python Courses for Beginners to Learn Online in 2024 [UPDATED]
Top 7 Free Maven and Jenkins Online Courses for Java Programmers in 2024 [ UPDATED]
Friday, January 26, 2024
Top 5 Books to Learn Hibernate for Java Developers in 2024 - Best of Lot
Top 5 Books to Improve Coding and Programming Skills - Must Read, Best of Lot
Thursday, January 25, 2024
Top 5 Free AWS Developer Associate Certification DVA-C02 Courses in 2024 - Best of Lot
3 Best Books to Learn Java Programming for Beginners
Wednesday, January 24, 2024
10 Free Courses to Learn Data Structure and Algorithms in Java, Python, and C++ in 2024 [UPDATED]
Top 10 Books Every Programmer Should Read
Tuesday, January 23, 2024
Top 5 Courses to learn Web Scraping using Python and JavaScript in 2024 - Best of Lot
Monday, January 22, 2024
Top 5 Books to learn React.js for Beginners in 2024 - Best of Lot
Top 5 Spring Framework Books for Java developers (Includes Spring Security and Spring Boot) - Best of lot
Sunday, January 21, 2024
Top 5 Online Courses to Learn HTML and CSS in Depth - Best of Lot
Top 5 Free Angular Courses for Beginners to Learn Online in 2024 - Best of Lot
Friday, January 19, 2024
Top 10 Java Online Courses and Tutorials for Beginners in 2024 [UPDATED]
Hello everyone! if you want to learn Java Programming and become a Java Programmer in 2024 and looking for the best resources like books, online courses, tutorials, projects, and websites, you have come to the right place. Earlier, I have shared the best Java books for beginners, best Java websites, best Java tutorials, and free Java courses. Today, we will go through some of the best online courses for learning the Java Programming language. These Java online courses are curated from top websites and learning platforms like Coursera, Udemy, Educative, CodeCademy, Javaespecialist, etc.
Wednesday, January 17, 2024
Top 6 Free Courses to Learn TypeScript in 2024 - Best of Lot
Top 5 Free R Programming Courses for Beginners in 2024 - Best of Lot
How to replace an element of ArrayList in Java? Example
What is the difference between byte and char data types in Java? Example
Sunday, January 14, 2024
Difference between ArrayList and HashSet in Java? Answer with Example
4 ways of Session management in Servlets, JSP, and Java Web Applications
String to Enum in Java - Example
You can create Enum from String by using Enum.valueOf() method. valueOf() is a static method that is added on every Enum class during compile-time and it's implicitly available to all Enum along with values(), name(), and cardinal() methods. In order to create Enum from String, String must be the same as declared Enum otherwise, the code will throw "java.lang.IllegalArgumentException: No enum const class". the same technique can be used to convert String into Enum instance as well.
9 difference between static vs non-static method in Java - Answer
How to Add Elements of two Arrays in Java - Example
How to read a text file into ArrayList in Java? Examples
6 Difference between forward() and sendRedirect() in Servlet - Answer
java.lang.IllegalStateException: getOutputStream() has already been called for this response
org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:424)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
HelloServlet.doGet(HelloServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
and here is the root cause :
3 ways to Copy a File From One Directory to Another in Java, Examples
How to read a text file as String in Java? Example
How to convert Enum to String in Java with Example
How to Increase Heap Size of Java Program running in Eclipse [Example]
-Xms<size> to set the initial Java heap size
-Xmx<size> to set the maximum Java heap size
-Xss<size> to set the java thread stack size
$ java -Xms1G -Xmx2G MainClass
In the above line, we have set the minimum heap size to 1GB and the maximum heap size to 2GB.
How to fix java.lang.IllegalStateException: getWriter() has already been called for this response [Solution]
Difference between jsp:include and jsp:forward action- Example
<jsp:forward page="URL" />
How to get Current Date and Time in Java with Example
How to convert java.util.Date to java.sql.Timestamp in Java - JDBC Example
How to Run a JAR file from Command Prompt - Windows and UNIX [Example]
What is default Serialization in Java? Serializable and Externalizable Interface Explanation
Serialization in Java is a process to persist any Java Object's state into a File System or convert them into a byte stream to transfer over the network to another JVM or program. Serialization in Java is done by JVM by employing the default Serialization process which persists all of the Object's state except the transient variable and a static variable. How Serialization works in Java is another popular Java Serialization interview question, well It's easy to make any Java class Serializable, the class needs to implements java.io.Serializable interface, and JVM will automatically serialize its instance when passed over to java.io.ObjectOutputStream using writeObject().
How to use Enum in Java? Example
Why you shouldn't use == with float and double in Java?
For example, the following code will not work as you expect :
for(double balance = 10; balance!=0; balance-=0.1) { System.out.println(balance); }
How to load data from CSV file in Java - Example
6 Difference between include directive and include action in JSP
Even though both include directive and include action allows you to include the response of one JSP into another, they are quite different from each other e.g. include directive is processed at translation time and used to include the static resources e.g. HTML files, images, and CSS, etc, while the <jsp:include> action is processed at request time and used to include more dynamic resources e.g. JSP or Servlet. What is the difference between include directive and include action is also one of the most popular JSP interview questions, mostly asked either at telephonic round or first few round of Java web developer interviews?
Difference between @PreAuthorized and @RolesAllowed Annotations in Java (with Example)
Hello guys, In Java programming and backend application development security plays a pivotal role in safeguarding applications from unauthorized access and malicious activities. To ensure proper control over access rights, Java developers often utilize annotations, such as @PreAuthorized and @RolesAllowed of Spring Security framework. Earlier, I have shared how to setup Spring Security and talked about HTTP Basic Authentication and In this article, we will explore the functionality of both annotations, their differences, and use real-world and programming examples to illustrate their significance.
Saturday, January 13, 2024
Top 5 Free Courses to Learn C Programming for Beginners in 2024 - Best of Lot
Friday, January 12, 2024
Top 5 Python Books for Beginners to Learn Programming in 2024 - Best of Lot
Thread-safe Singleton in Java using Double Checked Locking Idiom
How to convert float to int in Java? Examples
How to use BigInteger class in Java? Large Factorial Example
How to set JAVA_HOME (PATH) in Mac OS? Example Tutorial
export JAVA_HOME=`/usr/libexec/java_home` (remember backticks)or
echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.7)" >> ~/.bash_profile
This will append export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.7)" into your bash_profile file. If you have set JAVA_HOME in UNIX then it's exactly similar to that.
How to use final in Java? Final class, final method, and final variables Example
How to write to File in Java using BufferedWriter [Example]
How to fix java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
How to format numbers in Java? - NumberFormat Example
Thursday, January 11, 2024
How to append text to existing File in Java? Example
How to break from a nested loop in Java? [Example]
How to Convert a Double to Long in Java - Example Tutorial
How to create User Defined Exception class in Java? Example Tutorial
Second Highest Salary in MySQL and SQL Server - LeetCode Solution
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For example, given the above Employee table, the second highest salary is 200. If there is no second highest salary, then the query should return NULL. You can write SQL query in any of your favorite databases e.g. MySQL, Microsoft SQL Server, or Oracle. You can also use database specific feature e.g. TOP, LIMIT or ROW_NUMBER to write SQL query, but you must also provide a generic solution which should work on all database.
Monday, January 8, 2024
How to Prepare for AWS Certified Solutions Architect Associate SAA-C03 Exam in 2024
Saturday, January 6, 2024
Top 5 Free C++ Courses for Beginners to Learn Programming Online in 2024 - Best of Lot
Wednesday, January 3, 2024
Top 5 Free Google Cloud Platform Courses for Beginners in 2024 - Best of Lot
Top 5 Hibernate and Spring Data JPA Online Courses in 2024 - Best of Lot
Hello Java programmers, if you want to learn Hibernate and Spring Data JPA, two of the leading persistence framework for enterprise Java development, and need the best resources like books, tutorials, and online courses then you have come to the right place. In the last article, I have shared the best Spring framework courses, and best Hibernate books, and today, I am going to share the best online courses to learn both Hibernate and Spring Data JPA in 2024. These are the top-quality courses from popular online learning platforms and sites like Udemy, Pluralsight, and Baeldung and are trusted by thousands of Java developers around the world to learn these essential frameworks for Java developers.