Concept of docker

I am new in Docker… can I use this docker to scala application? and must I use the same way as python application?