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

What should I do after learning Java core?
After mastering Java core, consider expanding your skills by exploring more advanced Java topics such as: Object-Oriented Programming (OOP): Deepen your understanding of OOP principles and design patterns. Java...
Kumarnaik
0 0
5
How do I learn Java? From book or internet or a coaching?
According to me....u should start from basic Java..that is core Java... . Find coaching , who teaches Java for beginners.....then later u can go for advance java.
Suresh
0 0
7
What are the difference between abstract class and Interface?
Abstraction : Hiding unnecessary details of object and shows only essential features of Object to communicate. abstract class : partially defined Object interface :Complete specification of Object class : Complete definition of Object
Ashish
Hi, We provide online instructor-led training. I am looking for Java Teacher/Instructor who can teach java via online. If anyone interested then contact me. I have to start the class from tomorrow onwards.
Hi, If you haven't finalised yet, I am interested in being an instructor. I will be teaching the newest version of Java, Java 10. Experience - 3 yrs as Software Engineer, BTech CSE, teaching Java to school and college students since 3 yrs.
Ujjwal Rana

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

Ask a Question

Related Lessons

Write your first Python program in 10 minutes
1. Download python from python official site search "python download" in google 2. Install in your machine 3. verify using : "python --version" command 4. Write first program using notepad create...

Introduction to Course Content
Video about what we are going to learn throughout the Java Training Session .

2.1. Reverse a singly linked list.
class Node { int data; Node next; Node(int data) { this.data = data; this.next = null; }} public class LinkedList { Node head; public void reverse() { Node prev = null; Node curr = head; Node next =...

ListIterator Example
public class ListIteratorEx { public static void main(String args) { List<String> li = new ArrayList<String>(); li.add("java1"); li.add("java2"); li.add("java3"); li.add("java4"); ListIterator...
S

Sarthak C.

0 0
0

Inheritance In Java
Inheritance: The process of getting properties and behaviors from one class to another class is called inheritance. Properties: Variables Behaviors: Methods The main purpose of the inheritance...
D

Deleted U.

1 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