Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning from Java to C... ...What is the biggest challenge?

Tags:

java

c

I had experience on Java, because of some results, I need to code in C, is it difficult to switch from Java to C? And what is the biggest different between these two languages?

like image 220
Tattat Avatar asked Apr 03 '10 02:04

Tattat


People also ask

Is C harder to learn than Java?

It's a general consensus that Java is easier to learn because its syntax is closer to natural language than C.

How hard is C from Java?

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.

Which is better to learn first C or Java?

Should I Learn Java or C++ first? Most programmers agree that Java is easier to learn first. Java's syntax is usually easier for new programmers to understand.

What is the hardest C language to learn?

C++ is considered to be one of the most powerful, fastest, and toughest programming languages.


2 Answers

Without question, first and foremost, it's the manual memory management.

Second is that C has no objects so C code will tend to be structured very differently to Java code.

Edit: a little anecdote: back 15 or so years ago when it was common to log on to your local ISP on a UNIX command prompt when PPP was still pretty new and when university campuses still had an abundance of dumb terminals to UNIX servers, many had a program called fortune that would run when we logged on and output a random geeky platitude. I literally laughed out loud one day when I logged in an read:

C -- a programming language that combines the power of assembly language with the flexibility of assembly language.

It's funny because it's true: C is the assembly language of modern computing. That's not a criticism, merely an observation.

like image 74
cletus Avatar answered Oct 30 '22 08:10

cletus


Perhaps the most difficult concept is learning how to handle pointers and memory management yourself. Java substantially abstracts many concepts related to pointers, but in C, you'll have to understand how pointers are related to one another, and to the other concepts in the language.

like image 36
WhirlWind Avatar answered Oct 30 '22 10:10

WhirlWind