A framework complements your code. Frameworks are open-source, meaning they are constantly being improved by the community who uses them, so they are always up to date. They are by no means set in stone either; you are free to tweak the framework you choose to suit your own website or application.
These are the three options available to would-be programmers to choose from. If you are still confused, check out the Code Institute’s beginners guide to Java programming.