Cramster.com - Homework Solutions, Lecture Notes, Exams, and Free Online Homework Help
Sign Up Now! Login Customer Support Cramster Blog
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Problem Solved.
    Home    
    Homework Help    
   Answer Board   
    Resources (Beta)    
   
Member's Topic Headline:

JAVA & C++

Know the answer? Have a better solution? Share it.
Get Help Now.
View homework problems
explained for free!
Member Testimonials

Question:

Advertisement:

Answer | Ask New Question | Customize Profile | Leaderboards | 
FAQ

Member's Avatar

Mentor
Karma Points: 445
Respect (96%):
Date Posted: 7/23/2008 2:45:06 AM  Status: Closed
JAVA & C++
Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:
Diference in Java and C++

Helping Others is My HOBBY
Hope for LIFE SAVER RATE

Answers:

Member's Avatar

Mentor
Karma Points: 508
(SVITS , Indore)
Date Posted: 7/23/2008 3:21:18 AM  Status: Live
Asker's Rating: None Provided    Moderator's Rating: Helpful
Response:
Plz Do rate d solution !!

Both apply OOPS. but java adopts byte code convertion whereas c++ does not.

c++ supports destructors whereas java doesn't support.

c++ uses pointers but java don't.....so more secure....

Multiple inheritance can be possible in c++ but not possible in java.

c++ is a semi object oriented programing language where as the java is fully object oriented language,java is platform independent also,then java memory allocatin and deallocation is easy,garbage collection is one of the features,a rich set of collection api.

C++ has templates but Java doesn't

C++ can pass by value(default) or by reference whereas Java can only pass by reference (well, except primitives).

C++ requires memory management and Java provides garbage collection.

C++ is system dependent and Java is system independent.



 

Never hesitate to ask a question & Never fear of answering a question !!

Member's Avatar

Guru
Karma Points: 2,019
Date Posted: 7/23/2008 7:00:43 AM  Status: Live
Asker's Rating: Lifesaver   
Response:
Java C++
Method bodies must be defined inside the class to
which they belong.
Method bodies must be defined inside the class to
which they belong.
No forward referencing required. Explicit forward referencing required.
No preprocessor. Heavy reliance on preprocessor.
No comma operator. Comma operator.
No variable-length parameter lists. Variable-length parameter lists.
No optional method parameters. Optional function parameters.
No const reference parameters. const reference parameters.
No goto goto
Labels on break and continue. No labels on break and continue.
Command-line arguments do not include the
program name.
Command-line arguments do not include the
program name.
Main method cannot return a value. Main function can return a value.
No global variables. Global variables.
Character escape sequences can appear in a program. Character escape sequences must appear in a string
or character literal.
Cannot mask identifiers through scope. Can mask identifiers through scope.
MasooM's Comment:
thnx for telling me in detail. Mr. XP

Hope this will help you,
Don't forget to LIFE SAVER RATE to my answer plz.

Ziaxp (MIT)




By reading or posting messages on these forums, you are agreeing to the Answer Board's Terms of Service and Conduct (TSC).


About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy

Cramster.com is not affiliated with any publisher. Book covers, title and author names appear for reference only.
Copyright © 2008 Cramster, Inc.