0
What is the difference b/w Ruby and java,and their applications?
I want a clarity b/w these two languages
1 Réponse
+ 3
There are quite a number of differences but here are the main ones :
- Ruby is an interpreted scripting language, but Java is a compiled programming language.
- Ruby's variable are dynamically typed , this means that variables do not have an explicit type associated with them, but Java's variable are statically typed.
- Everything is an object in Ruby, for Java, only classes have objects.
- In Ruby, all member variables are private unlike Java, where they can be changed with other identifiers.