added scala and java basic comparisons