Obesity is a major risk factor, and diet, exercise and medication can help prevent the condition in people at risk or treat the disease once it develops.Type 1, by contrast, used to be called juvenile diabetes" because it is often present from childhood.