Meanings
idiomaticfavorite subject
Nur weil es dein bestes Fach ist, muss es ja nicht dein Lieblingsfach sein.Just because it’s your best subject doesn’t necessarily mean it has to be your favorite subject.
nonce-wordfavorite shelf or compartment
Das hier ist mein Lieblingsfach, denn da sind meine Süßigkeiten drin.This is my favorite shelf, because this is where I store my sweets.
Examples
GermanEnglish
Was ist in der Schule dein Lieblingsfach?What's your favorite subject at school?
Mathe ist ihr Lieblingsfach in der Schule.Math is her favorite subject in school.