Social Sciences, asked by cutie2567, 1 year ago

Hey guys❤
what is the difference between Java and c
DON'T DARE TO SPAM.....


.

Answers

Answered by Itzkrushika156
1

Answer:

Explanation:

Java’s motto (so to speak) is “write once run anywhere”.

When you compile a Java program, an intermediate bytecode is generated, which itself is interpreted by the Java Virtual Machine. This way you write a program once, and the virtual machine translates the bytecode into instructions a specific processor can understand.

Execution of a Java program is by consequence a bit slow, because the intermediate bytecode has to be interpreted.

Java uses a “Garbage Collector” which manages memory automatically so the programmer doesn’t have to handle that.

Variables in Java can be declared anywhere in a program. (Although it is recommended to declare/define them at the beginning of blocks).

Reuse of code achieved by inheritance.

By default members are private.

Answered by kinshukkumar17
1

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 procedure-oriented while JAVA is data-oriented. ... Java is an Interpreted language while C is a compiled language.

Similar questions