> Java faster than Ruby?
> 
> can you show an example please?
> For most of what I did ruby was way fatser than java..

See the great language shootout:
http://www.bagley.org/~doug/shootout/
This has test timings and example code.

Java is slower to start up than Ruby.  Java loads a big virtual machine.
However an example from the great language shootout.
Array access test:  Ruby 29 secs.  Java .82 secs.