Académique Documents
Professionnel Documents
Culture Documents
1)Method Overloading. : If a class have multiple methods by same name but different
parameters, it is known as Method Overloading.(static binding,early
binding,compiletime polymorphism)
1. By changing number of arguments
2. By changing the data type
3. Not possible by changing return type.
2)Method
The main advantage of method overriding is that the class can give its own specific
implementation to a inherited method without even modifying the parent class(base class)
a class.
No return type no modifiers.
No abstract,native,final.
A constructor is an instance method that usually has the same name as the class, and can be used
to set the values of the members of an object, either to default or to user-defined values.
Spring framework :
Abstraction
Abstraction refers to the act of representing essential features
without including the background details or explanations. Classes
use the concept of abstraction and are defined as a list of abstract
attributes.
Abstract class is a class that is declared abstractit may or may not include abstract
methods. Abstract classes cannot be instantiated, but they can be subclassed.
Abstract method is a method that is declared without an implementation (without
braces, and followed by a semicolon), like this:
abstract void moveTo(double deltaX, double deltaY);
An abstract method is a method that is declared without an implementation.It just has a
method signature
abstract Classes
Interfaces
abstract class can extend only one class or one abstract class at a
time
interfaces at a time
5
6
7
In an interface keyword ab
method as an abstract
to declare a method as an a
methods
abstract class can have static, final or static final variable with
A class may implement a number of Interfaces, but can extend only one
abstract class.
FileNotFoundException
ParseException
ClassNotFoundException
CloneNotSupportedException
InstantiationException
InterruptedException
NoSuchMethodException
NoSuchFieldException
BufferOverflowException
BufferUnderflowException
CMMException
ConcurrentModificationException
DOMException
EmptyStackException
IllegalMonitorStateException
IllegalPathStateException
IllegalStateException
ImagingOpException
MissingResourceException
NegativeArraySizeException
NoSuchElementException
ProfileDataException
ProviderException
RasterFormatException
SecurityException
SystemException
UndeclaredThrowableException
UnmodifiableSetException
UnsupportedOperationException
Thread : Thread is a concurrent unit of execution. Or in other words you can say that it is
part of process that can run concurrently with other parts of the process.