> He said that java-styled programming is as detrimental as C style within C++
He didn't say precisely that.
Writing Java-style code in C++ can be as frustrating and sub-optimal as writing C-style code in C++.
Which, I think, means that that there are contexts where either Java-style or C-style code, or both are suboptimal.
> does anyone know of any examples?
I think the standard C++ library provides a profusion of examples where both the Java-style of programming and the C-style of would have been singularly inappropriate.