"Life is a complex optimization problem. We need to think the matching values of its variables, which may not be the best values for themselves, in order for maximizing the life's objective function" - Me.
Java Reflection
Java's Reflection API's makes it possible to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes, methods etc. at compile time. It is also possible to instantiate new objects, invoke methods and get/set field values using reflection.
References:
- Tutorials at jenkov.com
FRIEND
I don't know who expanded the abbreviated term FRIEND. It was circulated among friends in Facebook on the friendship day. I really liked it. Its interesting:
FRIEND :
F=Few
R=Relations
I=In
E=Earth
N=Never
D=Die
F=R=I=E=N=D
________________##_________##
_______________###*_______*###
___________.*#####_________#####*.
__________*######__________######*
________*#######____________#######*
_______*########.__________.########*
______*#########.__________.#########*
______*######@###*_______*###@######*
_____*#########*###____###*#########*
____*##########*__*####*__*##########*
__*###########_____*_*______###########*
_############_______________############
*##*#########___FRIENDS ____#########*##*
*_____########______________########_____*
_______#######______________#######
________*######____________######*
_________*#####*__________*#####*
___________*####*________*####*
_____________*####______####*
_______________*##*____*##*
_________________*##__# #*
FRIEND :
F=Few
R=Relations
I=In
E=Earth
N=Never
D=Die
F=R=I=E=N=D
________________##_________##
_______________###*_______*###
___________.*#####_________#####*.
__________*######__________######*
________*#######____________#######*
_______*########.__________.########*
______*#########.__________.#########*
______*######@###*_______*###@######*
_____*#########*###____###*#########*
____*##########*__*####*__*##########*
__*###########_____*_*______###########*
_############_______________############
*##*#########___FRIENDS ____#########*##*
*_____########______________########_____*
_______#######______________#######
________*######____________######*
_________*#####*__________*#####*
___________*####*________*####*
_____________*####______####*
_______________*##*____*##*
_________________*##__# #*
Properties in Java
Properties are configuration values managed as key/value pairs. In each pair, the key and value are both
String
values. The key identifies, and is used to retrieve, the value, much as a variable name is used to retrieve the variable's value. For example, an application capable of downloading files might use a property named "download.lastDirectory" to keep track of the directory used for the last download. To manage properties, create instances of
java.util.Properties
. This class provides methods for the following: - loading key/value pairs into a
Properties
object from a stream, - retrieving a value from its key,
- listing the keys and their values,
- enumerating over the keys, and
- saving the properties to a stream.
References: