Can teens and children have type 2 diabetes?

I was wondering if only people in their 40s+ are diagnosed with type 2 diabetes and if only people below that age are diagnosed with type 1 diabetes.