Almost sure bounded imply finite expectation? Suppose that the random variable $X$ is $\mid X \mid<M$ almost surely, for some constant $M<\infty.$ Then can we say that $E(X)<C$ for some constant $C<\infty$? 
If the expectation is not bounded, is there any additional (other than bounded a.s.) conditions on $X$ that would give us a finite expectation? 
My confusion is there could be $0\cdot \infty$ terms where the random variable is infinite with probability $0$. And these terms are not defined well. I believe this post disproves the converse. This is not homework just self studying. Thank you.
 A: The definition of almost-sure boundedness, or essential boundedness is the following (see also this definition):
$Y:(\Omega, \mathcal{F}, \mathrm{P})\to \mathbb{R}$ is an essentially bounded random variable if there is a $M\geq 0$ so that $\mathrm{P}[|X|>M]=0$, i.e., the set $\{\omega: |X(\omega)|>M\}$ has measure zero.
Remark An essentially bounded function is not necessarily bounded. You can find relevant examples here.
A very easy way to give an affirmative answer to your question is the following: Let $X:(\Omega, \mathcal{F}, \mathrm{P})\to [0,+\infty)$ be a finite-valued non-negative continuous random variable. In this case we may use the following representation of the expectation (see this Wikipedia article):
$$\mathbb{E}[X]=\int_{\Omega}X(\omega)\mathrm{P}(\mathrm{d}\omega)=\int_{0}^{\infty}\mathrm{P}[X\geq x]\mathrm{d}x,$$ 
where $f(x) = \mathrm{P}[X\geq x]$ has finite support because there is $M>0$ so that $\mathrm{P}[X\geq x]=0$ for all $x>M$ because of our hypothesis that $X$ is non-negative and essentially bounded (almost-surely bounded). As a result, $\mathbb{E}[X]$ will be finite.
We also have the following result (without assuming continuity):
Let $X\in \mathcal{L}^{\infty}(\Omega, \mathcal{F}, \mathrm{P})$ and $Z\in \mathcal{L}^{1}(\Omega, \mathcal{F}, \mathrm{P})$. Then, $XZ$ is measurable and $XZ$ is integrable and 
$$
\|XZ\|_1 \leq \|X\|_{\infty}\|Z\|_{1},
$$
take $Z=1$ and we get 
$$
\|X\|_1 \equiv \mathbb{E}[|X|] \leq \|X\|_{\infty} < \infty,
$$
Therefore $\mathbb{E}[|X|]$ is finite, but by Jensen's inequality
$$
|\mathbb{E}[X]| \leq \mathbb{E}[|X|],
$$
so, $\mathbb{E}[X]$ is also finite. As a result, essentially bounded random variables have finite expectation.
With some little abuse of notation we can write
$$
\mathcal{L}^{\infty}(\Omega, \mathcal{F}, \mathrm{P}) \subseteq \mathcal{L}^{1}(\Omega, \mathcal{F}, \mathrm{P})
$$
In general, we can also show that 
$$
\mathcal{L}^{p}(\Omega, \mathcal{F}, \mathrm{P}) \subseteq \mathcal{L}^{p'}(\Omega, \mathcal{F}, \mathrm{P}), \text{ whenever } p' \leq p,
$$
but the converse is not true. A random variable with finite expectation does not have finite second moment. A random variable with all moments up to $p>1$ may not have finite moments of order $p'>p$ and, further, may not be essentially bounded.
A necessary clarification: 
A typical example of an essentially bounded function that is not bounded is the following:

This is given by (here $\Omega=\mathbb{R}$)
$$
X(\omega)=\begin{cases}
1, &\text{if} x\in \mathbb{R}\setminus \mathbb{N},\\
x, &\text{otherwise}
\end{cases}
$$
Indeed, notice that $\mathrm{P}[X>1]=0$.
The notion you mentioned in your comment below is not essential boundedness: for $X:\Omega\to \mathbb{R}\cup\{+\infty\}$ the property $\mathrm{P}[X=\infty]=0$ (equivalently $\mathrm{P}[X<\infty]=1$) is that $X$ is almost-everywhere finite or almost-surely finite-valued. No way, should this be confused with essential boundedness. Take for instance the following very simple function
$$
X(\omega) = \omega,
$$
where $\Omega = \mathbb{R}$. Notice that $\{\omega, X(\omega) = +\infty\}=\varnothing$, but $X$ is not essentially bounded and is not bounded. 
If a random variable is almost-everywhere finite, it does not necessarily have finite expectation. Take for instance the counterexample provided in this answer. Another example, if you prefer an example not in discrete space, is the Pareto distribution with parameter $\alpha=1$. There are numerous other examples.
