Java Course Day 16

20
Day 16

description

 

Transcript of Java Course Day 16

Page 1: Java Course Day 16

Day 16

Page 2: Java Course Day 16

Annotations

Page 3: Java Course Day 16

@Override

Page 4: Java Course Day 16

@Override@SuppressWarnings

Page 5: Java Course Day 16

@Override@SuppressWarnings@Deprecated

Page 6: Java Course Day 16

How to create Annotation?

Page 7: Java Course Day 16

@Target

Page 8: Java Course Day 16

@Target@Retention

Page 9: Java Course Day 16

@Target@Retention@Inherited

Page 10: Java Course Day 16

@Target@Retention@Inherited@Documented

Page 11: Java Course Day 16

Reflection

Page 12: Java Course Day 16

Proxy

Page 13: Java Course Day 16
Page 14: Java Course Day 16

“The remote proxy can shield the fact that theimplementation resides in another address space.”

Page 15: Java Course Day 16

“The virtual proxy can perform optimizations—for example, by creating objects on demand.”

“The remote proxy can shield the fact that theimplementation resides in another address space.”

Page 16: Java Course Day 16

Decorator

Page 17: Java Course Day 16
Page 18: Java Course Day 16

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

Page 19: Java Course Day 16

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

“You want to add responsibilities to an object that youmay want to change in the future.”

Page 20: Java Course Day 16

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

“You want to add responsibilities to an object that youmay want to change in the future.”

“Extending functionality by subclassing is no longerpractical.”