Thread: Is Java Purely object oriented language? Difference between Java and C+? Which one is better? Reply to Thread

Your Username: Click here to log in
Title:
  
Message:
Post Icons
You may choose an icon for your message from the following list:
 

Additional Options

Miscellaneous Options

Topic Review (Newest First)

2nd August 2013 12:43 PM
midhunarmid
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Quote:
Originally Posted by manas.europhia View Post
Yes, java is purely object oriented language.

Difference between c++ and Java:

* There are no header files in java where as c++ have.
* Java doesn't support operator overloading
* Java doesn't have template class has in C++
* Java doesn't support multiple Inheritance.
* Java doesn't support Global Variables.
* Java doesn't use the Pointers where as c++ have.
* Java has replace Destructor function with a finalized function.

Both are very important if you know c++ then java is very easy . C++ is a object oriented program.
How can we say that Java is 'purely' an Object Oriented language..?? Java uses primitive data types like int, boolean, double, etc... They are not objects of any class.

But comparing Java with C++, we can say that Java is more OO than C++, just because Java requires minimum of one class and it runs with the object of that class. We cant write a running Java program without using at least one Class while in C++ it is possible to write and run programs which don't require a Class.
26th September 2012 12:43 PM
sampathkumar29
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

James gosling , patrick naughton , chris warth , mike sheridan & ed frank created java at sun microsystem in 1991
Java was the need for a platform independent language

Difference between java and c :

C was designed to be compiled
C is platform dependent
It does not use classes
Th does not implement the object oriented model
It does not employ abstraction mechanism
It does not employ polymorphism
All applications must have a main() method

Java :

Java was designed to interpreted
Java is platform independent
It does urdualarses
Th employs abstraction mechanism
It employs polymorphism
Only stand alone application must have main () method
25th September 2012 11:57 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

what is the difference between object oriented and pure object oriented programming language.
17th August 2012 02:02 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

Is Java Purely object oriented language?
no,As in C and some other object-oriented languages, variables of Java's primitive data types are not objects. Values of primitive types are either stored directly in fields (for objects) or on the stack (for methods) rather than on the heap, as commonly true for objects (but see Escape analysis). This was a conscious decision by Java's designers for performance reasons. Because of this, Java was not considered to be a pure object-oriented programming language
27th January 2012 09:37 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

java and c both are object oriented follow the concept of inheritence,polymorphism,encaptulation.etc then why java called pure object oriented ,c not?
2nd January 2012 12:02 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

how can we say that java is an example of pure object oriented programming?
8th November 2011 05:05 PM
manas.europhia
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Yes, java is purely object oriented language.

Difference between c++ and Java:

* There are no header files in java where as c++ have.
* Java doesn't support operator overloading
* Java doesn't have template class has in C++
* Java doesn't support multiple Inheritance.
* Java doesn't support Global Variables.
* Java doesn't use the Pointers where as c++ have.
* Java has replace Destructor function with a finalized function.

Both are very important if you know c++ then java is very easy . C++ is a object oriented program.
7th September 2011 05:40 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

According to my knowledge java is not pure object oriented programming language because it allows to write programs with the help of integers which i present in Control Statements.These things are derived from some other languages like c,c .So pure Object-Oriented means every thing should be "OBJECT" only.
EXAMPLE for PURE object oriented language is "SMALL TALK"
3rd September 2011 05:59 PM
manoj rajpurohit
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Yes java is a pure object oriented language. c++ had many drawbacks so java is developed.
c++, no concept of multithreading wheras in java presence of multi threading.
the main difference between java and c+ that java is a platform independent language and c++ is a platform dependent language.
now what is this plate form independent language then i want to tell you that when a java source code is created in the not pad or command prompt then we have to compile and interpret it separately. after compiling this a .class is generated(here class is name of the class in which the main function is created). this .class file is known as byte code.
this byte code is responsible for the platform independent of java. this byte code can be run on other system or operating system.
so this is the main difference.
31st August 2011 07:38 PM
nambardar
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Yes java is a purely object oriented programming language.It was created in order to over come the programming difficulties in c++
c++, class specifier is terminated by ‘; ‘ wheras in java class specifier are not terminated by’;’
c++, no concept of multithreading wheras in java presence of multi threading.
c++ supports operator ovarloading wheras java,supports operator overloading.
java does not have template classes as in c++.
31st August 2011 03:15 AM
divyanakra
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

yes java is purely object oriented language and in comparison of c+ and java i must say that java is better.
30th August 2011 09:42 PM
tanmayeetripathy
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Yes , java is purely and complete object oriented language due to the absence of global scope.everything in java is an object. All program code nad data reside within objects and classes.
-java comes an extensive set of classes, arranged in packages, that we in our programs by inheritance.
-the object model in java in sample and easy to extend.
-java is a secured language because it doesn’t use pointers.


Diference between java and c++ is follows:-
• in c++ presence of pointer, referencing and dereferencing operator while absence of pointer and these operators on java.

• in c++, character take 1 byte and supports ascii character while in java character supports 2 bytes and supports unicode.


• in c++, class specifier is terminated by ‘; ‘ wheras in java class specifier are not terminated by’;’

• in c++, no concept of multithreading wheras in java presence of multi threading.


• c++ supports operator ovarloading wheras java,supports operator overloading.

• java does not have template classes as in c++.


• there is no header files in java as in c++.

• c++ supports multiple inheritance wheras java doesn’t support it.in java this is accomplished using a new feature called “interface”.


-it is ovious java is better because it is complete object oriented, simple and secured language.

Good luck..
30th August 2011 08:24 PM
balafederer
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Hello,

Yes, java is purely object oriented language.

Difference between c++ and Java:

* There are no header files in java where as c++ have.
* Java doesn't support operator overloading
* Java doesn't have template class has in C++
* Java doesn't support multiple Inheritance.
* Java doesn't support Global Variables.
* Java doesn't use the Pointers where as c++ have.
* Java has replace Destructor function with a finalized function.

Both are very important if you know c++ then java is very easy . C++ is a object oriented program.

Best wishes
27th August 2011 03:14 AM
ANIAAAAANNNNNIIIII00000
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Yes java is purely object oriented language, difference between java and C++ is , Java is platform independent while C++ is not.
26th August 2011 10:36 PM
Unregistered
Re: Is Java Purely object oriented language? Difference between Java and C ? Which one is better?

difference between java and object oriented?
19th August 2011 11:34 PM
Sehwag6
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

both c++ and java are good object oriented languages.

it is the easy platform for programming.

but java is something hard platform to write programs

c++ is the basic of c
19th August 2011 05:27 PM
amaan khan ak
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Quote:
Originally Posted by swathidn View Post
is java is purely object oriented language?
what is the difference between java & c#?which one is better?
yes java is a purely object oriented language.java ans c++ is almost similar languages.c++ is a funfamental language so its programming is typical and hard as compare to java.java use the syntax of c language and methods of c++ language.
c++ is also a object oriented language.but its not portable,easy,platform independent as java.
so this is the main diffrence between java and c++.
java programming is the easiest programming in all languages.

hope u get ur answer.

regards
amaan
14th August 2011 05:59 PM
Bmsri
Re: Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

Quote:
Originally Posted by swathidn View Post
is java is purely object oriented language?
what is the difference between java & c#?which one is better?
Yes java is a purely object oriented programming language.It was created in order to over come the programming difficulties in c++.programming in java is easy and very efficient when compared to c++.so it is always better to learn java but c++ is a fundamental of programming,so it will be tough for you to study java without studying c++.
Good Luck.
10th August 2011 10:58 PM
swathidn
Is Java Purely object oriented language? Difference between Java and C+? Which one is better?

is java is purely object oriented language?
what is the difference between java & c#?which one is better?

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.