Wednesday, December 7, 2022
Is Java Pass by Value or Pass by Reference? Example
Wednesday, September 21, 2022
Difference between CAST, CONVERT, and PARSE SQL Server? Example Tutorial
Tuesday, August 30, 2022
Difference between @Mock and @MockBean in Spring Boot? Example Tutorial
Hello guys, if you are writing test for your your Spring Boot application then Sooner or later, you'll come across @Mock and @MockBean annotations while testing your Spring Boot application. Both annotations generate fake or Mock objects, but for different reasons and its important for Java and Spring Boot developer to know the correct difference and when to use @Mock and @MockBean while writing tests. It's possible that this will seem perplexing at first, in face I was confused for a long time until I did my research and cleared it up. But, you don't need to scan through internet, In this blog article, I'll clear up any misunderstandings and clarify the difference between @Mock and @MockBean when testing Spring Boot apps.
Saturday, August 27, 2022
Difference between State and Strategy Design Pattern in Java
Decorator Design Pattern in Java with Example Java Tutorial
Data Access Object (DAO) design pattern in Java - Tutorial Example
Thursday, August 25, 2022
How to Convert a Map to a List in Java - Example Tutorial
Wednesday, August 24, 2022
How to use mkdir command to make directories in Linux and UNIX? mkdir -p Example
Tuesday, August 23, 2022
How hostname to IP address Conversion works in Linux? nslookup Example
Monday, August 22, 2022
How to Delete Empty Files and Directories in UNIX or Linux Host? find Command Example
Saturday, August 20, 2022
Difference between HashMap, LinkedHashMap and TreeMap in Java with Example
Friday, August 19, 2022
4 Example to Iterate over Map, HashMap, Hashtable or TreeMap in Java
How to get Key From Value in Hashtable, HashMap in Java? Example
10 Examples of HashSet in Java - Tutorial
Thursday, August 18, 2022
Difference between HashMap and IdentityHashMap in Java? Example
Difference between bitwise and logical AND, OR Operators in Java? Examples
What is NavigableMap in Java ? TreeMap, headMap, tailMap, and subMap Examples
Wednesday, August 17, 2022
Why use SerialVersionUID inside Serializable class in Java? Example
Monday, August 15, 2022
Object Oriented Programming Example in Java? Tutorial
Difference between Class, Instance and Local variables in Java? Example
Friday, August 5, 2022
Difference between Checked vs Unchecked Exception in Java? Example
[Solved] How to solve java.lang.UnsatisfiedLinkError: no ocijdbc11 in Java with Oracle 11g, 12c, 19c and 21c
Thursday, August 4, 2022
How to fix java.lang.UnsupportedClassVersionError: Bad version number in .class files? Example
How to Fix Must Override a Superclass Method Error Eclipse IDE Java | @Override annotation with interface methods
How to fix "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK" in Eclipse & Maven?
How to fix java.sql.SQLException: Invalid column index? Example
Friday, July 29, 2022
How to use ArrayList in Java? 10 Examples of ArrayList
Wednesday, July 27, 2022
How to find current directory in Java with Example
How to read from and write to a text file in Java - Example Tutorial
How to append text into File in Java – FileWriter Example
How to Copy a File in Java Program - Example Tutorial
How to read File into String in Java 7, 8 with Example
Tuesday, July 26, 2022
Top 5 Free and Paid OCAJP, OCPJP Mock Exams and Practice questions - (Java Certification)
Sunday, July 24, 2022
How to read a File in One Line in Java? Files.readAllLines() Example Tutorial
Java 8 - Stream FlatMap Example - List of Lists to List
How to convert java.util.Date to java.sql.Date - JDBC Example
Saturday, July 23, 2022
How to convert String to Date in Java - SimpleDateFormat Example
How to Convert Date to String in Java with Example
How to convert Date to LocalDate and LocalDateTime in Java 8 - Example Tutorial
17 Examples of Calendar and Date in Java - Tutorial
Thursday, July 21, 2022
10 Difference between Java and JavaScript for Programmers
How to get current URL, parameters and Hash tag using jQuery and JavaScript? Example
Monday, July 18, 2022
How to format/parse dates with LocalDateTime in Java 8 - Example Tutorial
Difference between Period and Duration class in Java 8? [Example]
Friday, July 15, 2022
What is Double Brace Initialization in Java? Example Initializing HashMap and List with values in Java
Thursday, July 7, 2022
Right way to Close InputStream and OutputStream in Java - Example
Wednesday, June 29, 2022
How to implement Command Design Pattern in Java with Example
Monday, June 27, 2022
Can a Non Static Method Access a Static Variable/Method in Java?
Sunday, June 26, 2022
How to create Tabs UI using HTML, CSS, jQuery, JSP and JavaScript? Example
How to use Adapter Design Pattern in Java with Example
What is the Use of Interface in Java and Object Oriented Programming? [Answer]
Thursday, June 16, 2022
java.lang.UnsatisfiedLinkError: no dll in java.library.path - Cause and Solution
Spring Boot Error - Error creating a bean with name 'dataSource' defined in class path resource DataSourceAutoConfiguration
Difference between WHERE vs HAVING clause in SQL - GROUP BY Comparison with Example
Wednesday, May 25, 2022
How to Set Classpath for Java on Windows and Linux? Steps and Example
Monday, May 23, 2022
Difference between Direct, Non Direct and Mapped ByteBuffer in Java?
Wednesday, May 11, 2022
String vs StringBuffer vs StringBuilder in Java? Example
Sunday, May 8, 2022
Java 8 forEach() Loop Example
Difference between Transient, Persistent, and Detached Objects in Hibernate
Wednesday, April 27, 2022
How to use filter + map + collect + Stream in Java? Example Tutorial
Wednesday, April 20, 2022
Top 50 SQL and Database Phone Interview Questions Answers
Monday, April 18, 2022
How to use Environment Variables in Spring Boot's application.properties file? Example Tutorial
Thursday, April 7, 2022
How to Create a thread-safe ConcurrentHashSet in Java 8? [Example]
Wednesday, March 30, 2022
How to Read JSON String in Java using json-simple library? Example Tutorial
Saturday, March 26, 2022
How to send JSON via POST request using RestTemplate in Spring | PostForObject, PostForEntity, and PostLocation Example in Java
Wednesday, March 16, 2022
Spring Boot + Redis Example in Java
Hello guys, if you are wondering how to use Redis with Spring Boot in Java then you have come to the right place. Earlier, I have shared the Spring Boot + React example, Spring Boot + Angular example, and Spring Boot + MyBatis examples In this tutorial, we will review the basics of how to use Redis with Spring Boot. We will build an application that demonstrates how to perform CRUD operations Redis through a web interface. So before going into in detailed project example, let's move with the what is spring Redis. As Java developers, we need to talk about the data layer, as we can't develop an insightful application without the use of CRUD operations.
Saturday, February 12, 2022
How to delete a key value pair from a HashMap during Iteration in Java - Example tutorial
Thursday, February 10, 2022
Top 30 Java Phone Interview Questions Answers for Freshers, 1 to 2 Years Experienced
5 Benefits of using interface in Java and Object Oriented Programming
Tuesday, February 8, 2022
Difference between SOAP and RESTful Web Service in Java
3 Ways to Read File line by line in Java 8? Examples
Sunday, February 6, 2022
2 Examples to read Zip Files in Java, ZipFile vs ZipInputStream - Tutorial
Friday, February 4, 2022
How to access Private Field and Method Using Reflection in Java? Example Tutorial
Monday, January 31, 2022
How Garbage Collection works in Java? Explained
Sunday, January 16, 2022
Top 30 JavaScript Interview Questions with Answers for 1 to 5 Years Experienced Programmers
Building a career as a developer in the IT industry can be challenging if you lack stream-specific preparation. For instance, if you want to be a JavaScript developer, you have to dig deep into its concepts and learn every bit about JavaScript, but then also, I would say, you are 50% prepared for the Job. I'm not saying that you aren't capable enough to get that JavaScript developer's Job; instead, I mean to say that you aren't ready enough to face the recruiters.