Category: Java Algorithm


Write a java program establish a JDBC connection Week   12 Aim: To  Write a java program establish a JDBC connection, create a table student with properties name, register number, mark1,mark2, mark3. Insert the values into the table by using the Read more…


Write a Java program that implements a simple client server application Week  11 Aim: To Write a Java program that implements a simple client/server application . The client sends data to a server. The server receives the data, uses it Read more…


Write a program that creates a user interface to perform integer divisions An interface in Java is a template of a class. It has static constants and abstract methods. Java has a mechanism to achieve interface abstraction. The Java interface Read more…


Java program to design simple calculator with the use of gridlayout Week  9 a Aim: To Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the +, Read more…


Week 8 Java applet program that displays a simple message Aim: To Develop an applet that displays a simple message. In this example, we are using a function named g.drawString () which is a method of Graphics class, here g Read more…


Types of exception in java with examples Aim to handle exception in java To Use inheritance to create an exception super class called Exception A and exception sub class Exception B and Exception C, where Exception B inherits from Exception Read more…


Find the area of triangle and rectangle in java Week 6 a)Aim: To Write java program to create a super class called Figure that receives the dimensions of two dimensional objects. It also defines a method called area that computes Read more…


How to compare dates in java algorithm with source code 5-c) Write a java program to read the time intervals (HH:MM) and to compare system time if the system time between your time intervals print correct time and exit else Read more…


find unique elements in array java week – 5 b) Write java program that inputs 5 numbers, each between 10 and 100 inclusive. As each number is read display it only if it‘s not a duplicate of any number already Read more…


Java roll dice 10000 times with algorithm and source code Week 5 a)Aim: To Write a java program to make rolling a pair of dice 10,000 times and counts the number of times doubles of are rolled for each different Read more…

Categories