Is it theoretically possible to study for over 24 hours straight?

I'm a life-long learner and I love to study everything from everything (online, library books, etc). The thing is apart from some topics (namely photography, physics and programming) I only tend to love getting the foundations and then it gets boring and I leave it, but because I have the foundations I can simply come back to it whenever I want to.

The thing is, I am probably going to University soon and I would like to have a very good handle on programming by then (it is slightly related to my course too). But before I take on programming I have to finish all my studies on advanced physics which is gonna take a while.

I am only 18 and not very experienced in this, but is it possible to study for over 24 hours straight (well some breaks in between obviously; just no sleep) assuming 2 things:
1. I rarely ever do an all-nighter and haven't done one for over 1 month so health risks are not a concern
2. I'm more concerned with simply getting stuff down to paper than actually learning them just yet so I don't mind if I don't learn anything in this study marathon because I will be reviewing everything later.

So if it is possible how to do it? I don't mind getting tired but I don't want to get tired to the point that I start missing stuff from the videos/books. I don't mind not learning it yet but I want to write the most important things on the subject and to do so I must be alert enough to catch them.
Technically this would be possible if I consumed enough cals to get tons and tons of energy but I don't know experience > theory.
Anyone cares to share an opinion? ^^
Is it theoretically possible to study for over 24 hours straight?
Post Opinion