Byte Streams in Java

In java programming, to perform input and output of 8-bit, Byte stream is used. Most common byte streams classes are, FileInputStream and FileOutputStream. FileInputStream : FileInputStream is used for reads one byte at a time . FileOutputStream : FileOutputStream is used for writes one byte at a time Writing Bytes Example: Write a program, to write a bytes to … Read more

Find out Duplicate Number between 1 to n numbers in java

Find out duplicate number between 1 to n numbers in java is generally ask in interviews. Here we are going to find a duplicate number between 1 and n. n is any user given number. We have to check which number is duplicate. For example In above figure first row contains number 12 two times … Read more

Java swing login form with database connection source code download

Here we will develop the Java swing login form with database connectivity. We considered a small example with student details to log in From Java Swing and redirect to another frame after login. Java swing login form with database connection in Netbeans Here we have created a swing login form in java and connected that … Read more

CRUD JDBC Project in Java with MySql Source Code

CRUD JDBC Project in Java is a good and basic project for beginners this project will help you to understand the basic concepts of JDBC operation. Here we have covered more than 11 JDBC operations. Database connection with java is one of the essential features of java, In java to connect with the database we … Read more

Inheritance in Java-Types and Examples

Inheritance in Java is the process of acquiring the properties of one class object into another class object. It allows the hierarchical classification. Inheritance also provides the facility of reusability. In Java programming, a class that is inherited is called a superclass or sub class or parent class and class that does the inheriting is … Read more

MySql dump using java

To take mysql database backup we have Runtime.getRuntime().exec(executeCmd). executeCmd is command that will take backup of mysql database. String executeCmd contains the mysqldump to backup database. filePath variable contains the downloaded sql file.

Concatenate & Buffer File in Java

Here we will concatenating and store buffering files in java using BufferedInputClass and BufferedOutputClass. Concatenate: It is possible to concatenate two or more files and save in a different file. In java, by using SequenceInputStream class we can concatenate two or more files. Buffer Files: In java, we can create a buffer to store temporary … Read more

Simple java program to add two numbers

java program to add two numbers is a very simple program. It is required by learners How can we add two numbers. We will start with simple addition and try to cover additional things here. Simple java program to add two numbers Steps to add two numbers Store two numbers in two variables Add both … Read more

Simple Calculator in Java Applet

Java Applet provides a GUI way to create a program and its interface, Here we are creating Simple Calculator in Java Applet with GUI and its processing. As we have already learned about applet and applet life cycle. Here we have discussed two simple calculator programs using the applet. Simple applet- a beginner program Simple … Read more