Java is probably the most popular programming language of today. Its similarity to C++ may lead to some interference of these languages. This article shows some constructs, that are possible in both languages, but have different meaning, thus leading often to semantic errors in programs.