Comparison of Java and C
From the perspective of face-to-object, Java is much better than C , and C is compatible with C, which has more flexibility. However, Java is not the same, everything is class, not only a slogan in Java, but is realized, but this sentence seems to be more slogans in C .
In the face of the object is an aspect, there is a difference between the diversity of C and the singleness of Java. The two languages are very simple, and the procedures written are even very similar, but once they enter practical applications, the problem is coming It's a remarkable programming in Windows, which is difficult to find a compiler that matches the C standard, and there is no unified graphics application interface in the C standard. This can't be said to be the sorrow of the C standard. The relevant interface can only It is too painful by the compiler according to the platform, which is too painful. I have almost lost confidence before learning Java. The reason is that those messy classes in the MFC use the meaning it does not match. Taking a calculator program as an example, Sun provides the programmer with a complete graphical interface, both of which use these interfaces, and is not related to the platform. But C , in addition to mastering C grammar, you have to learn the API of different platforms, learn the length of the learning curve, look at the richness of C books on the market.
This seems to indicate that Java is more discussing, after I wrote a few programs with Java, almost lamented, why isn't it a simple and powerful language that I have invented Java?
Microsoft pushes also C # I am afraid it is also this kind of mentality in it. Such a good idea (virtual machine, once programming, running everywhere) should not only have one realization, but unfortunately, the Microsoft is too windows, which has a heavy history, let people like it. Can't get up.
From the perspective of language, compared to Java, I don't like C , but I have to admit that C is closer to the bottom, more flexible. If you share the programmer as a chef, what's the right to choose to make a dish, all depending on the requirements of customers.