Why java language is called as java?

Because the name "Oak" was already reserved for another programming language. Apparently it was named "Java" after a type of coffee... which, in turn, is named after the island called "Java".