IoC and DI concept were very much confusing for me so I read lots of views and post of different people and finally reach to the conclusion. So as I understand these topics are...

Inversion of control is a technique in java for making loosely coupled and more easily maintainable applications, and dependency injection is a one of the way to achieve this concept(technique).

Inversion of control container inject dependency at run time from java classes to make loosely coupled application.

Is this true ? correct me if I am wrong...