Articles by Team EasyExamNotes

Javaprogram Graphic Applets

APPLET GRAPHICS: import java.applet.Applet; import java.awt.*; public class Graphic extends Applet{ public void paint(Graphics g){ g.setColor(Color.yellow); g.fillRect(0,0,200,30); g.setColor(Color.black); g.drawString(“Namashkar”,50, 50); g.setColor(Color.red); g.drawLine(200,30,200,300); g.setColor(Color.green); g.drawOval(0,100,200,30); g.setColor(Color.gray); … Read more

Java program use of String

public class StringConstructor {             public static void main (String args[]){                         char  arr[ ] = { ‘x’, ‘y’, ‘z’};                         String st = new … Read more

Java program method overloaing

PROGRAM: To show method overloading . /**         * @Prof. Jayesh         * Here method overloading is shown, differed in parameters.         */ class ContainsMethods … Read more

Java Nested Method

PROGRAM: To show nested methods. /**              * @Prof. Jayesh              * Here we call a method from main().              * Methods are in same class so … Read more

Java program use of continue

PROGRAM: To show use of Continue statement. /**              * @Prof. Jayesh              * continue is a control statement.              * continue brings compiler to … Read more

Java Do While program

PROGRAM: To show use of Do While. public class DoWhile {             public static void main(String args[])             {                         int i=1;                         do                         … Read more

Java Decrement operator

PROGRAM: To show use of decrement operator. /**              * @Prof. Jayesh              * Decrement operator uses ‘ – ‘.              */ public class DecrementOperator … Read more

Java constant

PROGRAM: To show constant. /**              * @Prof. Jayesh              * Here age is constant, which have fix value 28.              */ public class ConstantClass … Read more

Java Inheritance

PROGRAM: A program to show simple inheritance. /**              * @Prof. Jayesh              * Here two classes are created each having main function              * … Read more