A train collided with a car in Central Java, killing four people including two children, just days after another fatal crash outside Jakarta.