UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is difference between Java and C?

Asked by Last Modified  

3 Answers

Learn Java

Follow 3
Answer

Please enter your answer

C language Faculty (online Classes )

C is a procedural programming language. Java is an object-oriented programming language. C code is compiled to machine code for a specific platform. Java code is compiled to bytecode, which is then interpreted by the Java Virtual Machine (JVM) on any platform.
Comments

My teaching experience 12 years

Java and C are both programming languages, but they have several key differences: Platform Independence: Java is platform-independent, meaning Java code can run on any device that has a Java Virtual Machine (JVM). C code, on the other hand, needs to be compiled separately for each target platform. Memory...
read more
Java and C are both programming languages, but they have several key differences: Platform Independence: Java is platform-independent, meaning Java code can run on any device that has a Java Virtual Machine (JVM). C code, on the other hand, needs to be compiled separately for each target platform. Memory Management: Java has automatic memory management (garbage collection), which simplifies memory handling for developers. C requires manual memory management, and developers need to allocate and deallocate memory explicitly. Syntax and Structure: Java has a syntax similar to C++, making it more readable and object-oriented. C is a procedural language with a simpler syntax compared to Java. Compilation: Java code is compiled into bytecode, which is then executed by the JVM. C code is compiled directly into machine code for a specific platform. Pointer Usage: Java does not support pointers, which can simplify memory-related errors. C allows the use of pointers, providing more direct control over memory but also increasing the risk of bugs. Concurrency: Java has built-in support for multithreading and concurrency. C requires additional libraries or manual implementation for concurrent programming. Usage: Java is commonly used for web development (server-side), mobile applications (Android), and enterprise-level applications. C is often used for system-level programming, embedded systems, and performance-critical applications. In summary, while both languages are powerful, the choice between Java and C depends on factors such as the project requirements, development goals, and the desired balance between control and ease of development. read less
Comments

Python trainer believe in practical learning.

Java is a high-level, object-oriented programming language known for its platform independence and robust standard library. It requires a virtual machine (JVM) to execute code and offers automatic memory management. C is a mid-level programming language known for its efficiency and flexibility. It operates...
read more

Java is a high-level, object-oriented programming language known for its platform independence and robust standard library. It requires a virtual machine (JVM) to execute code and offers automatic memory management.

C is a mid-level programming language known for its efficiency and flexibility. It operates closer to the hardware, allowing direct memory manipulation and providing more control over system resources. It requires compilation into machine code specific to the target platform.

The key differences lie in their level of abstraction, memory management, and execution model, with Java being more abstracted and offering automatic memory management compared to C, which provides more control but requires manual memory handling.

read less
Comments

View 1 more Answers

Related Questions

public class X { public static void main(String [] args) { X x = new X(); X x2 = m1(x); /* Line 6 */ X x4 = new X(); x2 = x4; /* Line 8 */ doComplexStuff(); } static X m1(X mx) { mx = new X(); return mx; } } After line 8 runs. how many objects are eligible for garbage collection?
Only one. After line 8 the original object referred to by x2 is dereferenced and ready for garbage collection. In m1(), mx ignores the object passed as argument and refers to a new object which is returned.
Srikanth
Can u explain init() method is used in servlet for initialization then constructor also there for initializing variables.then what makes the difference between init() and default constructor in servlets?
Using init() only advisable than default constructor because we cannot initialize servlet using constructor because servlets are not directly instantiated by javacode, instead container create instance...
Anwar
What are the advantages of learning Java?
Dear Niteen Java is one of the most widest implemented technology for programming. Not only its used to develop full fledged Software Applications, but its also used for programming devices like Set...
Niteen
0 0
6
Can finally block be used without try block?
No. But it can be used without a catch block.
Sarala
Should we learn DBMS and RDBMS without any Java training?
java or i can say any programming language is not required to learn DBMS or RDBMS
Karthik
0 0
6

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

Ask a Question

Related Lessons

Create Immutable Class
Snippet of an Immutable Class: package com.stringhr; /*Declare the class as 'final'. This would prevent any other class from extending it and hence from overriding any method from it which could modify...

Java: A Quick Overview
Not purely Object Oriented: It doesn't support multiple inheritence, it supports primitive data types and static members. Doesn’t support multiple inheritance: Reason is diamond problem i.e.,...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

What Would Be Life Cycle Of A Fresher After Campus In An IT Company?
1. Basic Technical Training: Since freshers are not subject matter experts so gone through 3 - 6 months basic technical training within Organization. 2. Technical Assessment: HR sends freshers to various...

Android : Support multiple themes in an android application
If you are developing a theme based application to enhance user experience, then following steps needs to follow.We are taking example of an android application having 2 themes white and black.Step 1:Define...

Recommended Articles

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 >

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 >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

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
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more