What is difference between Java and C?

Asked by Last Modified  

2 Answers

Learn Java

Follow 1
Answer

Please enter your answer

Career Coach with 16+ years of experience

Few differences : Java is high level programming language, complied in bytecode performace wise slower than C as working with JVM, memory management is automatically via garbage collection platform independent C is mid level language, compiled in machine code performance is faster than java memory...
read more
Few differences : Java is high level programming language, complied in bytecode performace wise slower than C as working with JVM, memory management is automatically via garbage collection platform independent C is mid level language, compiled in machine code performance is faster than java memory management is manual (malloc/alloc and free) platform dependent read less
Comments

Developer and Computer Science graduate from Vellore Institute of Technology, Chennai, India

Key Differences Between Java and C Feature Java C Paradigm Object-Oriented Procedural Platform Dependence Platform-independent (runs on JVM) Platform-dependent (compiled for specific OS) Memory Management Automatic (Garbage Collection) Manual (malloc/free) Syntax...
read more
Key Differences Between Java and C Feature Java C Paradigm Object-Oriented Procedural Platform Dependence Platform-independent (runs on JVM) Platform-dependent (compiled for specific OS) Memory Management Automatic (Garbage Collection) Manual (malloc/free) Syntax Complexity Easier with built-in libraries Requires more manual coding (pointers, memory) Performance Slower due to JVM overhead Faster as it compiles to machine code directly Usage Used for web, enterprise, and mobile apps Used for system programming, embedded systems Pointers No direct pointer access Uses pointers extensively Security More secure (no direct memory access) Less secure (can manipulate memory directly) 👉 In short: Java is easier, safer, and portable, while C is faster, low-level, and powerful for system programming. read less
Comments

Related Questions

Is Java a better programming language than C++?
If you campareboth then java has an edge n many oppurtunities compared to c++
Coaching Center
I am mechanical student. Can you please tell me opportunities in software field?
Yes, you can get an opportunity. I have seen many mechanical, chemical and biotechnology students are working in its sector. For that, you have to learn some IT courses.
Sainathgowd
Is it possible to learn java at home without coaching in one month?
It all depends on you. If you are already aware of programming then it is definetly possible to learn java at home. But if learn through a tutor then you can learn easily.
Pritom
0 0
5
Which programming language should one use for large scale machine learning, Java or C++?
Java but preferred language now is R or Scala or Python .
Rayaan
0 0
5
Can a class have interface and vice-versa?
Interface is used to support multiple inheritance only.
Deepa
0 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Fractional Knapsack
Algorithm - Fractional Knapsack import java.util.Scanner; public class Knapsack01 { public static void main(String args) { Scanner scan = new Scanner(System.in); int...

Java Overview
Java platform overview Java platform components The Java platform consists of the following components. The Java language Like any programming language, the Java language has its own structure, syntax...
A

Akshay Shende

0 0
0

Java8 Filters and collectors
Lets say we have collection of strings and we would like to filter (remove) out certain strings from collection. We could achive the same in java 7 and earlier versions import java.util.ArrayList; import...

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...

doWhile example in Java
public class doWhilePracticleEx { public void test() { } public static void main(String args) { String q1 = "Who is PM of India?"; String a1 = "Sonia Gandhi"; String a2 = "Rahul Gandhi"; String a3...
S

Sarthak C.

0 0
0

Recommended Articles

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you