0

What is anonymous object in java and where do we use it?

30th Apr 2017, 6:25 PM
Saumya Saloni
Saumya Saloni - avatar
2 Answers
+ 7
Anonymous classes are a way to extend the existing classes on the fly. also, theres a lesson in the java course about this
1st May 2017, 5:01 AM
DeleteThisAccount
0
They were used to pass around code as arguments for other functions. Nowadays I'd use a lambda for that.
1st May 2017, 5:35 AM
1of3
1of3 - avatar