What do the curly braces do there ?
handler1 = new Handler() {
public void handleMessage() {
}
};
object = new Class_Name() {};
?
This syntax exists only on Android or Java also? And what is it called in Java? Thank for your helps.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…