Friday, January 13, 2017

Difference between C and Java Programming


Criteria
C Programming
Java Programming

Language Type
C is Procedural and Function oriented programming language.

Java is Object oriented programming language.
Level of Language
Low/Middle level
High level

Source file extension

.c
.java
Developed by
C originally developed by Dennis Ritchie between 1969 and 1973 at Bell Lab.

Java originally developed by James Gosling at Sun Microsystems 
Platform dependency / Portability
C is platform dependent.
Java is platform independent.
Security
Limited

Built in to language
Basic Program
#include<stdio.h>
int main(){
printf(“Hello”);
return 0;
}
public class HelloWorld {
   public static void main(String[] args) {        System.out.println("Hello");
   }
}
Printing output using variable

printf(“Maths=%d”, marks);
System.out.print(“Maths” + marks);
Basic compiler
gcc

javac
Known IDE / Editors

BorlandC, TurboC, Dev C++, CodeBlocks
Eclipse, NetBeans


* * * * *


* * * * *


No comments:

Post a Comment