what exactly are Type I and Type II errors in statistics?

what exactly are Type I and Type II errors in statistics? If you make a product and ship a bad product to customers, thinking it was good, can you illustrate how this scenario might be either a type I error type II error?

Type I Error: It is the event of rejecting the null hypothesis when it is true.Type II Error: It is the event of accepting the null hypothesis when alternative hypothesis istrue.The given case…