can java do the same as javascript code example Example: is java and javascript the same Absolutely not. They are just like car and carpet.