Geeks Talk

Prepare for your Next Interview




is java is a..

This is a discussion on is java is a.. within the Java forums, part of the Software Development category; hello is java is a pure object oriented programming language ? if not why ? can any one explain briefly please....


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-23-2007
Contributing Member
 
Join Date: May 2007
Location: Chennai
Posts: 34
Thanks: 0
Thanked 5 Times in 4 Posts
samineni6 is on a distinguished road
Smile is java is a..

hello

is java is a pure object oriented programming language ?
if not why ?

can any one explain briefly please.
Reply With Quote
The Following User Says Thank You to samineni6 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-23-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 197
Thanks: 2
Thanked 16 Times in 14 Posts
Barbie is on a distinguished road
Re: is java is a..

Java allows static variables, that can be accessed without objects.
so its not 100% object oriented.
Reply With Quote
  #3 (permalink)  
Old 05-23-2007
Contributing Member
 
Join Date: May 2007
Location: Chennai
Posts: 34
Thanks: 0
Thanked 5 Times in 4 Posts
samineni6 is on a distinguished road
Smile Re: is java is a..

can any one explain by taking the example of primitive datatypes ?
Reply With Quote
  #4 (permalink)  
Old 05-24-2007
Junior Member
 
Join Date: May 2007
Location: Hyderabad
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
swapnamarri is on a distinguished road
Re: is java is a..

Quote:
Originally Posted by samineni6 View Post
hello

is java is a pure object oriented programming language ?
if not why ?

can any one explain briefly please.
java claims to be a pure object oriented programming lang. but,actually it doesn't supports all features of oops.
For example Object-Oriented language should have: All pre-defined types are Objects but by its inclusion of "basic" types that are not objects, it fails to meet this quality

so, java is not a pure object oriented language .It is a hybrid language
A "hybrid" language may support some of the qualities of oops, but not all.

ok i'm givining oop's concepts also here

1.Encapsulation/Information Hiding
2.Inheritance
3.Polymorphism/Dynamic Binding
4.All pre-defined types are Objects
5.All operations performed by sending messages to Objects
6.All user-defined types are Objects

Among all these java doesn't supports 4th and 5th concepts of oops
Reply With Quote
  #5 (permalink)  
Old 05-28-2007
Expert Member
 
Join Date: Oct 2005
Location: india,cochi,bangalore
Posts: 395
Thanks: 2
Thanked 8 Times in 7 Posts
vmshenoy is on a distinguished road
Re: is java is a..

Quote:
Originally Posted by Barbie View Post
Java allows static variables, that can be accessed without objects.
so its not 100% object oriented.
Also multiple inheritance is not implemented in java.
also the declaration of variables, i.e primitive data types are used(which is other reason it is not object oriented THOUGH Wrapper classes are used to solve this issue)
I hop u r getting me (w.r.t primitive data types)
__________________
:)
NEVER SAY DIE.

Last edited by vmshenoy : 05-28-2007 at 06:02 AM.
Reply With Quote
  #6 (permalink)  
Old 06-07-2007
Junior Member
 
Join Date: May 2007
Location: Mysore
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
umeshap is on a distinguished road
Re: is java is a..

Java is not a pure object oriented language.

i can say 99% object oriented programming langauge .

because it supports primitive data types .
like int ,long , double... etc
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Why JAVA is NOT sudeep.goel Java 11 3 Weeks Ago 12:19 PM
before JAVA Timir Career Advice 1 12-18-2007 08:18 AM
How to test java project in QTP without java addin Geek_Guest QTP 7 09-18-2007 07:53 AM
Java rajesh.tripathi Java 2 04-26-2007 07:35 AM
Java over C++ Manojks OOPS 3 02-20-2007 11:11 PM


All times are GMT -4. The time now is 01:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved