How are they different from Java methods?

##Examples