Can a TLE in java be AC in C++ ?



Can a solution with TLE in java be AC in C++ with same logic.


Such cases very rarely it happens (when your solution is at the boundary of time limit). But always there exist a proper solution which runs well in time for any language, so if you get a TLE, its good to think that there exist a better solution then the one getting TLE.