Author name: Deepak Kumar

Convert Byte array to blob in java

Program to convert Byte array to blob in java In Java, converting a byte array to a ‘Blob’ object can be done using the ‘javax.sql.rowset.serial.SerialBlob’ class, which implements the ‘java.sql.Blob’ interface. import java.sql.Blob; import javax.sql.rowset.serial.SerialBlob; import javax.sql.rowset.serial.SerialException; import java.sql.SQLException; public class ByteArrayToBlobExample { public static void main(String[] args) { // Example byte array byte[] byteArray …

Convert Byte array to blob in java Read More »

Create a calculator using Java AWT

Create a Simple Calculator using Java AWT: Create a Java Class (‘CalculatorApp’): We’ll create a class named ‘CalculatorApp’ that extends Frame (from AWT) and implements ‘ActionListener’ to handle button clicks. Define GUI Components: Create labels for displaying instructions and results (‘Label’). Create text fields for user input and displaying the result (‘TextField’). Create buttons for …

Create a calculator using Java AWT Read More »

Scroll to Top