Language

What is the difference b/w c & java?

Questions by v s.n.reddy

Showing Answers 1 - 3 of 3 Answers

There are many differences beyond syntax. C compiles to a native binary, whereas Java compiles to a bytecode that is interpreted by a virtual machine (typically). C leaves a lot of details such as type sizes, alignment, order of evaluation, etc., up to the implementation; Java mandates all of these as part of the language definition. C supports unsigned integer types; Java does not. C exposes pointer operations to the programmer; Java does not.

Java offers built-in support for many object-oriented programming concepts, including class types, inheritance, generic types, etc. ; C offers no sort of OOP support. Java supports reflection (examining the types of data at runtime); C does not.

Javas treatment of arrays is completely different from Cs.

Javas class library is *huge* compared to the standard C library.

There are plenty of other differences that I know Im forgetting.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions