Why avoid using the c keyword in Java?

A popular editor uses highlighting to help programmers avoid using C keywords in Java Display the following words in the same color as syntax errors:

auto delete extern friend inline redeclared register signed sizeof
struct template typedef union unsigned operator

Why is this considered important?

Solution

Avoid confusion In the past 15 years, the largest migration path in the whole industry is from C to Java Therefore, it is wise to avoid using these words in new contexts because they no longer have any meaning

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>