🌐
Princeton CS
introcs.cs.princeton.edu › java › faq › c2java.html
C vs. Java
C Programming vs. Java Programming · Thing C Java type of language function oriented object oriented basic programming unit function class = ADT portability of source code possible with discipline yes portability of compiled code no, recompile for each architecture yes, bytecode is "write ...
🌐
InterviewBit
interviewbit.com › compare › ​​​​difference between c and java
​​​​Difference Between C and Java - InterviewBit
September 26, 2023 - C is modular and statically typed. ... Originally developed by James Gosling at Sun Microsystems, which is now acquired by Oracle, Java is one of the most diverse languages of today’s time.
Discussions

What is the difference between Java and C++? - Stack Overflow
What is the difference between Java and C++? Are both object-oriented? More on stackoverflow.com
🌐 stackoverflow.com
Very broadly, what are the differences between C, Python, and Java?
C is compiled down to a platform-dependent binary executable (e.g., a .exe file on Windows). You can't take one of these binaries and run it on a different operating system, as it has been compiled to run for a specific operating system. C does not have a runtime/garbage collector, which means that you have to manually manage the memory allocation of your program (see malloc and free). One has to be careful when managing the memory of their program, as there's an entire class of memory bugs that managed languages (languages with a garbage collector, for instance) don't have. In fact, since C is a lower level language, it does not give you many of the features that other languages have out of the box, such as generics, interfaces, classes, or lambdas. However, because C is such a bare-metal language, it is supported across the most computer architecture, can be optimized to run incredibly quickly, and can use extremely little resources. Java, like C, is a compiled language. However, it does not get compiled down to binary files, but rather to an intermediate representation known as JVM byte code (.class files). This can then be interpreted (see the Java JIT) by a platform dependent program known as the Java Runtime Environment. Java programs are garbage collected, which means that the interpreter itself will ensure that your objects and variables are allocated and deallocated as necessary, which protects Java programs from a whole range of memory bugs that C suffers from. This comes at a performance cost, as this means that your program suffers from the overhead of having to run both itself and this garbage collector in the background. Java has language features such as interface, classes, generics, lambdas, and foreach loops that can be leveraged to write safer and cleaner code. Python is a dynamically typed and interpreted language. Whereas it's possible to detect type errors at compile time in C and Java (i.e., trying to pass a boolean into a function that expects an integer), Python will not detect these type errors until it tries to execute that section of the code. The python interpreter will directly interpret your .py file (that's half true, the interpreter will create .pyc files to prevent having to parse a file multiple times). This means that there is no compilation step necessary to execute Python source code. Python, like Java, is a garbage collected language. It has a plethora of language features such as list comprehensions, generators, coroutines/async, and literals for datatypes such as lists, sets, and dictionaries. While this will vary from program to program, Python will typically be slower than Java, and much slower than C. To summarize, C is statically typed, low-level, and essentially has no run-time. Java is statically typed, garbage-collected, and compiled to an intermediate representation that then gets executed by a platform-dependent run-time environment. Python is dynamically typed and interpreted with a large amount of language features, albeit with generally worse performance. More on reddit.com
🌐 r/learnprogramming
21
14
October 24, 2017
What is difference between Java and C?
Answer: JAVA IS OOPS PROGRAMING RATHER C IS NOT SUPPORT OOPS. .View 2 other answers by ✔ Expert Tutors on UrbanPro.com More on urbanpro.com
🌐 urbanpro.com
3
0
May 15, 2023
java or C
Your "primary programming language" to do what? More on reddit.com
🌐 r/learnprogramming
77
58
March 30, 2023
People also ask

What is the difference in the type of applications that can be developed using C and Java?
C is used for system and embedded programming, Java for web and mobile applications.
🌐
testbook.com
testbook.com › home › key differences › difference between c and java
Learn what is the Difference between C and Java
Is C or Java Easier to Learn?
C is easier for understanding foundational programming concepts but requires managing memory manually. Java, though more complex initially, offers easier debugging and built-in memory management. Beginners may find Java more approachable due to its modern features and extensive resources.
🌐
theknowledgeacademy.com
theknowledgeacademy.com › blog › c-vs-java
Difference Between C and Java Language: Complete Guide
What is the learning curve for C compared to Java?
C has a steeper learning curve than Java.
🌐
testbook.com
testbook.com › home › key differences › difference between c and java
Learn what is the Difference between C and Java
comparison between two coding languages
Java and C++ are two prominent object-oriented programming languages. By many language popularity metrics, the two languages have dominated object-oriented and high-performance software development for much of the 21st century, and are … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Comparison_of_Java_and_C++
Comparison of Java and C++ - Wikipedia
3 days ago - Java and C++ use different means to divide code into multiple source files. Java uses a package system that dictates the file name and path for all program definitions. Its compiler imports the executable class files. Prior to C++20, C++ used a header file source code inclusion system to share declarations between source files.
🌐
Quora
quora.com › What-are-the-differences-between-Java-and-C-as-introductory-languages-for-students-who-want-to-pursue-computer-science-as-their-major-at-university-level-in-India
What are the differences between Java and C as introductory languages for students who want to pursue computer science as their major at university level (in India)? - Quora
Once you have learned the basics of programming (i.e., reading data, processing it, and writing the results), Java (and even C) will be easier to learn. If your choice is C or Java, start with Java. Java doesn’t take care of as many details as Python does, but it does take care of a lot more than C does. For example, in C, you have to allocate memory before you can use it. That means you have to know how much memory you need for integer variables vs. double-precision floating point variables. ... Originally Answered: What are the differences between C and Java?
🌐
Testbook
testbook.com › home › key differences › difference between c and java
Learn what is the Difference between C and Java
C is focused on low-level systems programming and manual memory management, while Java emphasizes readability, security, and platform independence through its use of automatic memory management and a virtual machine.
Find elsewhere
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › c-vs-java
Difference Between C and Java Language: Complete Guide
1 week ago - Both are powerful, but they serve different purposes in programming. C powers low-level, performance-based task, while Java simplifies cross-platform app creation with its object-oriented design.
🌐
Unstop
unstop.com › home › blog › 20+ differences between c and java | an easy explanation
20+ Differences Between C And Java | An Easy Explanation
April 19, 2024 - The key difference between C and Java is that one is procedural and platform-dependent, while the other is an object-oriented, platform-independent language.
🌐
Alma Better
almabetter.com › bytes › articles › difference-between-c-and-java
Difference Between C and Java Language: Contrasts Explained
January 8, 2024 - Safety and Security: Java is an excellent choice for applications requiring robust security features and automatic memory management. Example: Financial systems, where security is paramount, benefit from Java's security features. By looking at the difference between Java and C programming, the choice between Java vs C language boils down to your project's nature.
🌐
Shiksha
shiksha.com › home › it & software › it & software articles › difference between c and java
Difference Between C and Java - Shiksha Online
May 26, 2025 - This brief article explores the fundamental differences between C and Java programming languages. C is a procedural language that is designed for efficiency, while Java is an object-oriented language that is platform-independent.
🌐
Career Karma
careerkarma.com › blog › tech guides › java vs c: differences compared and contrasted
Java vs C: Differences Compared and Contrasted
September 9, 2022 - Let’s take a look at both languages and compare them on different fronts. One fundamental difference between these two languages is that Java is an object-oriented programming language while C is a procedural language.
🌐
EDUCBA
educba.com › home › software development › software development tutorials › top differences tutorial › c vs java
C vs Java | Top 13 Most Vital Comparison You Should Know
August 23, 2025 - Everything from a microcontroller to operating systems is written in C due to its flexibility and versatility, allowing maximum control with minimum commands. Both C vs Java programming languages hold their position in different aspects, so there are always points where we can compare but cannot replace each other.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Scaler
scaler.com › home › topics › difference between c and java
Difference Between C and Java - Scaler Topics
August 11, 2023 - Java is based on C so it has a lot of similarities in features and syntax but with enhanced functionality and less complexity. Although, C still remains the best choice for the development of operating systems, system applications, and middleware.
🌐
Simple Programmer
simpleprogrammer.com › home › blog › c vs. java: the 10 key differences
C vs. Java: The 10 Key Differences - Simple Programmer
March 23, 2022 - However, while Java has an internal privilege system, C doesn’t support it. As a result, you get static data hiding in C and private data hiding in Java. If you choose between Java and C for a plugin inside a web browser, you should pick Java because Java often releases a vast number of security patches at a time.
🌐
Reddit
reddit.com › r/learnprogramming › very broadly, what are the differences between c, python, and java?
r/learnprogramming on Reddit: Very broadly, what are the differences between C, Python, and Java?
October 24, 2017 -

From the perspective of the uninitiated, with a low level of proficiency, they look functionally indentical: all very useful, and each one capable of a wide range of tasks. A few syntax differences aside, elementary stuff looks practically interchangable.

At a deeper than surface level, what sorts of specialties does each offer? I’m a beginning programmer looking to get a basic lay of the land, as it were.

Top answer
1 of 5
22
C is compiled down to a platform-dependent binary executable (e.g., a .exe file on Windows). You can't take one of these binaries and run it on a different operating system, as it has been compiled to run for a specific operating system. C does not have a runtime/garbage collector, which means that you have to manually manage the memory allocation of your program (see malloc and free). One has to be careful when managing the memory of their program, as there's an entire class of memory bugs that managed languages (languages with a garbage collector, for instance) don't have. In fact, since C is a lower level language, it does not give you many of the features that other languages have out of the box, such as generics, interfaces, classes, or lambdas. However, because C is such a bare-metal language, it is supported across the most computer architecture, can be optimized to run incredibly quickly, and can use extremely little resources. Java, like C, is a compiled language. However, it does not get compiled down to binary files, but rather to an intermediate representation known as JVM byte code (.class files). This can then be interpreted (see the Java JIT) by a platform dependent program known as the Java Runtime Environment. Java programs are garbage collected, which means that the interpreter itself will ensure that your objects and variables are allocated and deallocated as necessary, which protects Java programs from a whole range of memory bugs that C suffers from. This comes at a performance cost, as this means that your program suffers from the overhead of having to run both itself and this garbage collector in the background. Java has language features such as interface, classes, generics, lambdas, and foreach loops that can be leveraged to write safer and cleaner code. Python is a dynamically typed and interpreted language. Whereas it's possible to detect type errors at compile time in C and Java (i.e., trying to pass a boolean into a function that expects an integer), Python will not detect these type errors until it tries to execute that section of the code. The python interpreter will directly interpret your .py file (that's half true, the interpreter will create .pyc files to prevent having to parse a file multiple times). This means that there is no compilation step necessary to execute Python source code. Python, like Java, is a garbage collected language. It has a plethora of language features such as list comprehensions, generators, coroutines/async, and literals for datatypes such as lists, sets, and dictionaries. While this will vary from program to program, Python will typically be slower than Java, and much slower than C. To summarize, C is statically typed, low-level, and essentially has no run-time. Java is statically typed, garbage-collected, and compiled to an intermediate representation that then gets executed by a platform-dependent run-time environment. Python is dynamically typed and interpreted with a large amount of language features, albeit with generally worse performance.
2 of 5
19
A major difference between the three is this; C is compiled straight to binaries and is run on the machine that compiled it or same/very-similar type machines. Java is is compiled into byte code which is run on any machine that can run a Java Virtual Machine (JVM). Python is interpreted by the machine that is running it at run time. What this means to you is that C is the most difficult to make programs that will run on different types of systems but is hella fast and super powerful on the ones it runs on. Java is easier to run on different machines, say mac and pc, but is slightly slower and more difficult to make powerful. Python runs on just about anything, as long as there's an interpreter written for it, but it's slow as shit and significantly more limited in what it can do, at least when compared to C and Java.
🌐
Sololearn
sololearn.com › en › Discuss › 898548 › can-you-tell-me-difference-between-java-and-c
Can you tell me difference between java and c++? | Sololearn: Learn to code for FREE!
Most differences between the features of the two languages arise due to the use of different programming paradigms. C++ breaks down to functions while JAVA breaks down to Objects. C++ is more object-oriented while JAVA is data-oriented.
🌐
UrbanPro
urbanpro.com › java › learn java
What is difference between Java and C? - UrbanPro
May 15, 2023 - Java, on the other hand, does not have pointers in the same sense as C. It provides references to objects, but these references do not allow direct memory manipulation. Platform Dependency: C is a low-level language that is often used for system programming and developing operating systems, device drivers, and embedded systems.
🌐
Reddit
reddit.com › r/learnprogramming › java or c
r/learnprogramming on Reddit: java or C
March 30, 2023 -

I know both java and c and I wanna use one as my primary programming language wich do you recommend?

edit:I don't do low level programming and I personally think I should go with Java thanks for the help.