Make difference between java private flag and scala private flag.