• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic