I am confused what is object oriented language and Why java is called a truly object oriented language
Why did you put Java under Javascript ? http://en.wikipedia.org/wiki/Object-oriented_programming http://en.wikipedia.org/wiki/Java_(programming_language) Read both and get back to us with more precise questions.
1) Javascript is an interpreted language used in writing web pages. Java is a compiled language used for creating applications. About the only thing they have in common is 4 letters in the names. 2) An OO language uses objects, methods, etc. A procedural language uses variables that aren't objects, functions, etc. (If you want to get further into that - what is an object, what isn't, etc. - you need to study computer science. It's not something you can learn from a forum post.) 3) Java is called an object oriented language because it is an object oriented language.
java is object oriented because of it's package setup. and Javascript by default is NOT object oriented, but it can be. Object orientation is basically where you use objects to store functions, variables, and whatnot. the most common way to do this, is via classes. And Non-Object oriented programming is where you run something line by line... such as... alert('wtf'); alert('hello?'); With OOP it creates an object, which basically means... it loads up all of the functions and variables first, so you don't have to worry about what order you put it in, and then it does all of that line by line junk. it's somewhat hard to explain