Category: java


What is an exception in java? handle exception in java Java – exception. An exception (or extraordinary event) is a problem that occurs during the execution of a program. When an exception occurs, the normal flow of the program is Read more…


Traffic Light using Applet in Java | algorithm and source code Traffic signal automation using java | Applet program in java Aim (project using applet in java) To design Traffic Light using Applet in Java Algorithm for Traffic Light Design Read more…


Currency converter using java. Aim: To design Currency converter using java. Procedure for conversion: getCurrency() : java.util.Currency.getCurrency() method returns ISO 4217 currency code of the passed currency argument. getInstance() : java.util.Currency.getInstance() method creates currency instance for Currency code. getDefaultFractionDigits() : Read more…


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…

Categories