• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

doubt in java basics

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have following doubts

1)Is Java pure Object Orinted Programme? I think no because java as only
Pass by value am i correct.

2) say A is a class then A o=new A(); left hand side is called refrence type,right hand side is called Instance type or Object type so then does it mean to say Instance and Object are synonymes.

Thanks
 
vishwa raj
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any body through some light on this

Thanks
 
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy Vishwa!

1) No, java is not purely object oriented. But I don't think this has anything to do with pass by value. It is not fully object oriented because it has also the primitive types that are no objects. int values don't have methods for example.

2) I would say that "instance" and "object" can be used as synonymes. But maybe there are differences in the exact definition. But I simply don't care about this. Perhaps consult wikipedia.


Yours,
Bu.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An object is an instance of a class. So yes, "object" and "instance" are essentially the same thing.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy,

Java is indeed Object-Oriented Programming language is based on following,

Any Problem can be programmed using Objects(Classes in Java sense) and it supports following features of OOP

- Reusability through Inheritence
- Encapsulation through Classes
- Instantiation of Classes
- Polymorphism

Based on above principles C++, Java are called Object-Oriented Programming langauage rather than Object Langauage. I believe Smalltalk is one such pure Object Language.

..Buddy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic