2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
23rd August 2014, 04:53 PM
Super Moderator
 
Join Date: Apr 2013
Re: Comparison Of Java And C

Here are I am providing the 10 major differences between C and Java for your idea.
1. JAVA is Object-Oriented while C is procedural. Different Paradigms, that is.

2. Java is an Interpreted language while C is a compiled language.

3. C is a low-level language while JAVA is a high-level language.

4. C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up {on the rocks} approach.

5. Pointer go backstage in JAVA while C requires explicit handling of pointers.

6. The Behind-the-scenes Memory Management with JAVA & The User-Based Memory Management in C.

7. JAVA supports Method Overloading while C does not support overloading at all.

8. Unlike C, JAVA does not support Preprocessors, & does not really them.

9. The standard Input & Output Functions.

10. Exception Handling in JAVA And the errors & crashes in C.
  #3  
22nd March 2015, 03:48 PM
Unregistered
Guest
 
Re: Comparison Of Java And C

Hey, I am an B.Sc. IT student , I am preparing for final exam of university , I am looking for the getting answers of the Comparison Of Java and C language , will you provide me the same ?
  #4  
22nd March 2015, 04:08 PM
Super Moderator
 
Join Date: Apr 2013
Re: Comparison Of Java And C

As you want I am here providing you comparison of the Java and C programming language .

Comparison of the Java and C programming language:

Given in manner as :

Thing :
C :
Java:

type of language
function oriented
object oriented

basic programming unit
function
class = ADT

portability of source code
possible with discipline
yes

portability of compiled code
no, recompile for each architecture
yes, bytecode is "write once, run anywhere"

security
limited
built-in to language

memory address
pointer
reference

pass-by-value
primitive data types, structs, and pointers are passed by value; array decays to pointer
all primitive data types and references (which includes arrays), are passed by value


memory allocation of data structures and arrays heap, stack, data, or bss
heap

buffer overflow
segmentation fault, core dump, unpredicatable program
checked run-time error exception





Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4