Articles by Team EasyExamNotes

Graphics in Applet

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

Applets life cycle

APPLETS LIFE CYCLE: Applet life cycle means the various states through which applet passes during its object creation and removal. Each state is a method. … Read more

Writing applets

WRITING  APPLETS: An applet is a Java program written in a special format to have a graphical user interface, which allows a user to interact … Read more

Applets Vs Applications

APPLETS VS APPLICATIONS: APPLET APPLICATION For execution requires a browser or applet viewer. For execution requires JRE. In it main() is not present. In it … Read more

Applet

LOCAL APPLETS: A local applet is that which is stored on a local system. We can create our own applet by own design and embed … Read more

Array in Java

ARRAY: An array is a data structure which holds similar types of elements. An array is an object that stores a list of items. Each … Read more

Constructor in JAVA

Here are some key points about constructors in Java: 1. Purpose: 2. Syntax: Example: 3. Default Constructor: Example: 4. Parameterized Constructor: Example: 5. Constructor Overloading: … Read more

Defining a class

DEFINING A CLASS : A class is the basic element of object oriented programming.A class defines the shape and behavior of an object.A class is … Read more