Skip to content

Category Archives: Java

ReentrantReadWriteLock class of Java is an implementation of ReadWriteLock, that also supports ReentrantLock functionality. The ReadWriteLock is a pair of associated locks, one for read-only… Read More
Streaming API for XML added in Java 6 provides a handy interface XMLStreamWriter which is used for writing XML documents. this API does not require… Read More
SocketException is a subclass of IOException so it’s a checked exception. It is the most general exception that signals a problem when trying to open… Read More
The occurs when an unsupported character encoding scheme is used in java strings or bytes. The java String getBytes method converts the requested string… Read More
The RMISecurityManager enforces the security policy for classes that are loaded as stubs for remote objects, by overriding all of the relevant access-check methods from… Read More
Java makes it possible to add images to Word documents using the addPicture() method of XWPFRun class provided by Apache POI package. Apache POI is… Read More
If you haven’t been stung by the below-mentioned exception when running a Java program created by you on your system that connects to an SSL… Read More
Getter and Setter are methods used to protect your data and make your code more secure. Getter returns the value (accessors), it returns the value… Read More
Java provides a mechanism to handle exceptions. To learn about exception handling, you can refer to exceptions in java. In this article, we discuss exception… Read More
When computing devices such as laptops, desktops, servers, smartphones, and tablets and an eternally-expanding arrangement of IoT gadgets such as cameras, door locks, doorbells, refrigerators,… Read More
J package tool was introduced as an incubation tool in java 14. It remained an incubation tool till java 15.  It packages java applications into… Read More
Our systems are working in a multithreading environment that becomes an important part for OS to provide better utilization of resources. The process of running… Read More
Create a  Button Group such that it contains three radio buttons Red, Yellow, Green when red is clicked you want to display “Stop”, when orange… Read More
ForkJoinPool is designed to be used for CPU-intensive workloads. The default number of threads in ForkJoinPool is equal to the number of CPUs on the… Read More
The Vector class implements a growable array of objects. Vectors basically fall in legacy classes but now it is fully compatible with collections. It is… Read More