answersLogoWhite

0

What is the relation between java c?

Updated: 8/29/2023
User Avatar

Wiki User

15y ago

Best Answer

The relationship between Java and C is primarily one of influence and history. Here's a brief overview of the connection between Java and C, with a mention of "AchieversIT" as your institute for Java training:

Influence of C on Java:

Syntax: Java's syntax and structure were heavily influenced by the C Programming language. Many aspects of Java's syntax, such as its use of semicolons, curly braces, and operators, resemble those of C.

Primitive Data Types: Java inherited primitive data types like int, float, and char from C.

Control Flow: Java's control flow constructs, including if-else statements, for and while loops, were inspired by C.

Differences Between Java and C:

Memory Management: One of the significant differences between Java and C is memory management. Java introduced automatic memory management (garbage collection), while in C, developers are responsible for memory allocation and deallocation.

Pointers: C supports pointers, whereas Java deliberately avoids them for security and simplicity reasons.

Platform Independence: Java was designed to be platform-independent, allowing code to run on any platform with a compatible Java Virtual Machine (JVM). C, on the other hand, compiles to platform-specific machine code.

Strong Typing: Java has a strong, statically-typed system where type checking is done at compile-time. C's type system is more flexible and allows for greater manual control.

Development of Java:

Java was developed by James Gosling and his team at Sun Microsystems (later acquired by Oracle) in the mid-1990s. It was designed to address the limitations and security concerns associated with C and C++.

Java's goal was to provide a language that was both platform-independent and secure. It introduced features like the absence of pointers and automatic memory management to achieve this.

Learning C and Java at AchieversIT:

AchieversIT can provide comprehensive training in both C and Java programming languages. Learning both languages can provide you with a strong foundation in computer programming and software development.

Understanding the similarities and differences between C and Java can be valuable when working on various software projects, as it allows you to choose the most appropriate language for a given task.

In summary, Java was influenced by C in terms of syntax and some language features but was designed with the goal of addressing the limitations of C and providing a more secure and platform-independent programming environment. AchieversIT can help you learn and master both languages, enabling you to become a proficient programmer.

User Avatar

Naveen G

Lvl 5
8mo ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

There is no real relation between Java and C. Java syntax is very similar to C syntax, but they don't really have anything to do with one another.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the relation between java c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Major difference between c and java?

Java is object oriented, C is not...


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


Difference between java and C plus plus?

java is an advanced object oriented programming language than c++


Difference between procedure and function in C or C plus plus or Java language?

In C there are functions only, In Java methodsonly (static methods as well), in C++ both.


What is the difference between java compiler and C compiler?

Greetings Technologist. The Java compiler compiles Java code, whereas the C compiler compiles C Code HTH Richard Wolf Software Architect


Is it necessary for you to learn c and c plus plus before you go for java?

No. You can learn Java first if you want. However, from a language perspective, C++ and Java are nearly identical1, and C is the predecessor of C++, so some people feel that the proper sequence is C, then C++, then Java. It is entirely up to you. ----------------------------------------------------------------------------- 1Nearly identical, that is, from a language perspective only. The environment and libraries are vastly different between C++ and Java.


What is difference between exception handling in C and Java?

Easy: there is no exception-handling in C.


What are the differences between C and Java reference variables?

Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.


What is the relation between Java and coffee cup?

The inventor of the Java programming language colonized Africa and forced the black people to harvest coffee beans to fund his research.


Major difference between java and cpp?

CPP typically stands for the C PreProcessor, which does macro expansion on C source code. What I suspect you want to know are the differences between C++ and Java. See the links below for more information on that topic.


What is JNI?

Java Native Interface JNI is an interface between java and applications and libraries written in other languages. As an example, JNI enables Java programs to use C libraries and also enables C programs to use Java classes.


What is the difference between cc plus plus and java?

C is a procedure oriented language ,Where C++ & java are object oriented language.But java is platform independent.So generally C is called POP.C++ is called OOP.But java is OOP , which is platform independent.If java does not support primitive data type then it is called as pure object oriented language.