Você está na página 1de 1

New operation

Creation issues
Complex logic involed
program to interface rather than implementation...
SRP, OCP
Ideas...
@NPIData in PMD
No.of Classes and its use in projects
THDC: November@2013

1.
2.
3.
4.
5.

Comes under Creations


When there is some complexity involved in object creation
duplication, SRP,loose coupling
new vs Spring
java.sql.DriverManager#getConnection()
java.net.URL#openConnection()
java.lang.Class#newInstance()
java.lang.Class#forName()

Encapuslate Object creation logic so that maintenace become easy.


Rupee, dollar, Yen is another example.
use of New keyword

Você também pode gostar