Check out example codes for "java vs c". It will help you in understanding the concepts better.

Code Example 1

// C is a procedural, low level, and compiled language. Java is an object-oriented, high level, and interpreted language. Java uses objects, while C uses functions. Java is easier to learn and use because it's high level, while C can do more and perform faster because it's closer to machine code

Learn ReactJs, React Native from akashmittal.com