Is Java like Flash™
From an end-user's standpoint - yes. Different ways of accomplishing the same animations, games and web page interactions through browser plug-ins.
From a developer's point of view - no. Flash is just a scripting language, that is quicker to write, and Java is a full-featured language, which is slower to write, but can in theory do more.