Sometime back I've written an article on Producer Consumer Example and how to handle read/write operation better way in Java. On the similar note, in this tutorial we will discuss something on Race …
Java J2EE Tutorials • Category Archive
Java and J2EE tutorials are lessons and resources aimed at teaching individuals about the Java programming language and the Java 2 Platform, Enterprise Edition (J2EE) for developing enterprise applications. These tutorials cover various aspects of Java and J2EE, including the language syntax, object-oriented programming concepts, J2EE components and APIs, and best practices for developing enterprise applications.
They are designed for both beginners and experienced Java developers, and aim to help individuals gain the skills and knowledge needed to develop high-quality Java and J2EE applications.
In Java How to convert Byte[] Array To String and String to Byte[]?
How to convert Byte[] Array to String in Java? How to convert UTF-8 byte[] to string? Convert Java Byte Array to String to Byte Array. String stores textual data and for storing binary data you …
Read Article about In Java How to convert Byte[] Array To String and String to Byte[]? →
How to iterate through Java List? Seven (7) ways to Iterate Through Loop in Java
How to iterate through Java List? This tutorial demonstrates the use of ArrayList, Iterator and a List. There are 7 ways you can iterate through List. Simple For loop Enhanced For loop …
Java: Simple QR Code Generator Example – Create QR codes for free
Scan this: You will be redirected to https://crunchify.com QR code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed …
Read Article about Java: Simple QR Code Generator Example – Create QR codes for free →
Java: How to Get Random Key-Value Element From HashMap
Is there a way to get the value of a HashMap randomly in Java? Of Course, below is a simple Java Code which represents the same. Also, at the end of program there is a bonus code to Shuffle …
Read Article about Java: How to Get Random Key-Value Element From HashMap →
Mastering Multithreading: Demystifying Daemon Threads in Java
Learn Java daemon vs. non-daemon threads: termination impact & usage. Optimize concurrency efficiently. Difference between Daemon and Non Daemon thread in Java : Termination …
Read Article about Mastering Multithreading: Demystifying Daemon Threads in Java →
Java Primitive Data Types details
Java is a widely used programming language that is known for its simplicity and versatility. One of the fundamental concepts in Java is the data type, which defines the type of data that can be stored …
In Java how to join Arrays? 3 ways: Apache Commons ArrayUtils, Java 8 Streams and Simple APIs
In this tutorial we will go over different ways we can join Java Arrays. If you have any of below questions then you are at right place: How can I concatenate two arrays in Java?How to Merge Two …
Best way to convert Primitive Array to List in Java and Classic toString(), Iterator way
Java Stream() is an amazing util class with lots of functionalities. We have published almost ~30+ Java8 Stream related tutorial on Crunchify and this one is on stream().boxed.collect() utility. We …
Lazy Creation of Singleton ThreadSafe Instance without Using Synchronized Keyword
Sometime back I have written short article explaining Singleton Design Pattern. In which I've explained two ways to create Singleton pattern. Lazy Initialization and Runtime …
What is Logback.xml Logging Framework? ConsoleAppender, FileAppender and RollingFileAppender Example
Are you aware of Logback Logging Framework? Well, most of the people mainly use log4j and slf4j into their project. Since last 6 months I've been using Logback.xml logging framework and I would say I …
How to Generate Random Number in Java with Some Variations?
In Java, there is a method random() in the Math class, which returns a double value between 0.0 and 1.0. In the class Random there is a method nextInt(int n) , which returns a …
Read Article about How to Generate Random Number in Java with Some Variations? →