C Vs Java: Everything you need to know

Page 1

FR

FABRIKAM RESIDENCES

C Vs Java: Everything you need to know By: Codeavail.com


Computer Science students always have a concern between C Vs Java. They are not able to decide which one is the best OOPs language. In this blog, our experts are going to share everything you need to know between C Vs Java.


Java Programming • Java is a common-purpose programming language, released by Sun Microsystems in 1995. • It is a computing platform for application development pre- Web apps, mobile apps, etc.

www.codeavail.com

3


FR

C programming • C is a procedural or general-purpose programming language designed by Dennis Richie in 1972. • It is older than Java.

Add a footer

4


FR

C Vs Java example: Java Hello World Example

C Hello World Example

• public class Hello{

• #include <stdio.h>

• public static void main(String[] args){

• int main(int argc, char ** argv)

• System.out.println(“Hello, World”);

• {

• }

• printf(“Hello World!\n”);

• }

• }

www.codeavail.com

5


C Vs Java

FR

• C programming language is a procedural language. Java is a pure objectoriented language. • Header files- In C we use the stdio.h header file. Java does not support any header files. • Platform Independent- C is platforms dependant, i.e. you cannot run the equivalent code in another operating system. • Java is a platform- independent language. • Pointers- We use pointers in C programming language. Java will not support pointers. • Operator Overloading– Operator Overloading concept is not in Java. www.codeavail.com

6


FR

C Vs Java • Multiple Inheritance- We not use many inheritances in Java. In Java, we use interfaces instead of many inheritances. • Translator- Java uses the compiler and interpreter but uses only the compiler in C. • Web application– Internet programming such as frames, the applet is used in Java, not in C. • Operator– dot (.) operator is used instead of the scope resolution operator. • Package- We can create our package in Java (set of classes) but not in C.

www.codeavail.com

7


Here are some blogs you can read Also, read… • Where is the Best Place to Get Help w ith Java Assignment? • How Do I Complete My Programming A ssignment In Short Time? • Who provides the best assignment hel p for C programming? • Score High Know How to make Java P rogramming Assignment


Contact Us: Website : https://www.codeavail.com/ E-mail : info@codeavail.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.