Java67

Top 20 Firebase Interview Questions and Answers for Developers

›
Hello guys, if you are preparing for Firebase Developer Job interview or interviewing for a Job where Firebase skills are needed and you nee...

Difference between wait() and join() methods in Java Multithreading? [Answered]

›
Hello guys, if you are wondering what is difference between wait() and join method in Java multithreading and when to use each of them then ...

Difference between Callable and Runnable in Java? call() vs run() method

›
Hello guys, the difference between the Callable and Runnable interface in Java is one of the interesting questions from my list of Top 15 Ja...
3 comments:

What is Volatile Variable in Java? When to Use it? Example

›
What is a Volatile variable in Java? The volatile variable in Java is a special variable that is used to signal threads and compilers and ...
4 comments:

Difference between synchronized block and method in Java? Thread Example

›
Synchronized block and synchronized methods are two ways to use synchronized keywords in Java and implement mutual exclusion on critica...
5 comments:

Producer Consumer Problem with Wait and Notify - Thread Example Tutorial

›
The Producer-Consumer Problem is a classical concurrency problem and in fact, it is one of the most powerful concurrency design patterns w...
25 comments:

Java CountDownLatch Example for Beginners - [Multithreading Tutorial]

›
Hello Java programmers, the CountDownLatch is an important concurrency utility class that was added in JDK 1.5 to facilitate inter-thread c...

2 Ways to Read a Text File in Java? BufferredReader and Scanner Examples

›
You can read a text file in Java by using either Files , BufferedReader  or Scanner class. Both classes provide convenient methods to read...
1 comment:

How to do Inter process communication in Java? MemoryMapped File Example Tutorial

›
Hello guys, in the past, I have shown you h ow to do inter-thread communication in Java using wait-notify, and today, I will teach you how...
9 comments:

Why wait() and notify() method should be called inside a loop in Java? Example

›
Hello Java programmers, if you have used the  wait() and notify() method in Java then you know that the standard idiom of calling the  wai...

Java CyclicBarrier Example for Beginners [Multithreading Tutorial]

›
This is the second part of my concurrency tutorial, in the first part , you have learned how to use CountDownLatch and in this part, you w...

Difference between wait and sleep in Java Thread? Example

›
Wait vs sleep in Java Differences between wait and sleep methods in Java multi-threading is one of the very old questions asked in Java ...
9 comments:

How to Sort ArrayList of Objects by Fields in Java? Custom + Reversed Order Sorting Comparator Example

›
There are a lot of examples of Sorting ArrayList in Java on the internet, but most of them use either String or Integer objects to explain...
1 comment:

How to Delete Objects from ArrayList in Java? ArrayList.remove() method Example

›
Hello guys, if you are wondering how to remove an element from a given ArrayList in Java then you are at right place. Earlier, I have shared...
5 comments:

How to convert an ArrayList to Array in Java? Example

›
Hello guys, if you are wondering how to convert an ArrayList of objects to an array of Object in Java then you have come at the right plac...
5 comments:

ArrayList.contains(), size(), clear, asList(), subList(), toArray(), and isEmpty() Example in Java

›
Java ArrayList Example ArrayList in Java is one of the most popular Collection classes. ArrayList is an implementation of the List inter...
1 comment:

How to read a File line by line in Java 8 ? BufferedReader lines() + Stream Examples

›
Hello guy, if you are wondering how to read a file line by line in Java but not sure which class to use then you have come to the right pla...

Difference between HashSet, TreeSet, and LinkedHashSet in Java

›
Hello guys, in the last article, we have learned abou t difference between HashMap, TreeMap, and LinkedHashMap and in this article, ...
1 comment:

10 Examples of ArrayList in Java

›
ArrayList Example in Java Hello guys, In this Java ArrayList Tutorial, we will see 10 common usage of ArrayList with examples . You wi...
1 comment:

How to Fix Reference Error: $ is not defined in jQuery and JavaScript [Solved]

›
Hello JavaScript developer, if you are wondering how to fix the Reference Error $ is not defined while using jQuery then you have come to t...
‹
›
Home
View web version