How is Java an 'imperative' programming language and not a 'declarative' one?

Moeb picture Moeb · Nov 7, 2009 · Viewed 12.7k times · Source

Specially in comparison to C/C++ (which are declarative), how is Java imperative?

Answer

Mike Q picture Mike Q · Nov 7, 2009

C/C++ is imperative too.

Edit: Imperative is do this, then do that, then do the next thing and so on. Declarative is, this are the rules, now what's the answer to this question. Google, you'll find plenty of info.