Previous | Next --- Slide 32 of 64
Back to Lecture Thumbnails
misaka-10032

This demonstrates the advantage of declarative abstraction over the imperative mechanisms. Programmers are prone to make mistakes by using imperative primitives such as locks and synchronized blocks. Trying to make things right would sometimes break elegance of code. By exposing such high-level abstraction, the application logic gets cleaner and less buggy.