Let $A \subseteq B$ be two $k$-algebras, $k$ is a field of characteristic zero. Assume that $\dim(A)=\dim(B) < \infty$.
Is it possible to find a non-maximal ideal $J$ of $B$ such that $J \cap A$ is a maximal ideal of $A$?
Please see this question, in which the following example appears: $A=k[x] \subset k[x,y]=B$. $J = (x,y^2)$ is not a maximal ideal of $k[x,y]$ and $J \cap k[x] = (x)$ is a maximal ideal of $k[x]$; but in this example we have $\dim(A)=1 < \dim(B)=2$.
Thank you very much!