Short answers GUI elements Static methods and variables Over
Solution
1. static method is belongs to the class not only to object of class.the static methods can be invoked directly witout any object creation of a class.as we know variables are named memory locations .we have three type of variables in java that is: local variable,instance variable and static variable. and in java we have two types of data types like primitive and non premitive data types .
2.method overloading is the way to increase some readability of program .method overloading is performed within the same class not in another class outiside.
3.method overriding to provide a new or a specific implementation of a method .a metod is already present in baseclass class.method overriding is performed between 2 clases .and they are not like overriding .in overloading methods should be in same class but in overriding they shoud be in differnet class .
4.
the final keywork makes user to provide restriction. . Final can be:in variable,class ,methods.
if variable is final then it is not alowed to change
if method is final then it is not allowed to overide
if class is final then it is not allowed to inherit
5.object of one type is converted to another type then it is called casting.
6.A class when it declared as abstract keyword, is known as abstract class in java. It can have both abstract and non abstract methods.no rule to have only abstract methods.
7.Interface contains a method with no implementation. There cannot be a method body in interface. It is usd for achieviang full abstraction and to over cme a problem like multiple inheritance .
8.timing Events. at specific intervals the window instance able to excete. and intervals are called as timing events.
9.GUI ELEMENTS:
JFRAME:A frame implements jframe interface, it comes with a window with default borders and suport etc.
JPANEL:one of swing container is jpanel and it light weight and to used to combine some componenets together. normally, does not have a gui like borders etc
JBUTTON:JButton also comes under swing it is used for creatinf platform independent buttons.in Swing appearance as per the reqirement we like.
11.Layout states that how to arrange componenets within the container. and says that how to place all the components at paritcular positon we like.
12.change from one state to another state (object) is known as event .therefore event state the changes in event souce . as we know events are generated due to user when intracted with gui. For example let us say cliking button ,scrolling mouse etc all these are comes under event
13.The event listener are responsible for handling the events. IN java we have diffeerent type of event listeners out of them we discuuss some of them. MOue motion listenre ,Action listenre
mouse listener:the class which mouse event need to generated must register to mouse listener.for example mouse click need mouse listenre
action listnere :the class which action event need to generated must register to Action listener .for example cliking button needs action event to occur
