• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java with Pointers and OOPS

 
Ranch Hand
Posts: 225
Spring Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question 1:
Does Java supports pointers ?
If yes then how?
If no then why?

Question 2:
Is Java is fully Object-Oriented Language ?
If yes,then what about int,float datatypes and what about multiple inheritance?

Question 3:
J2EE is superset of J2ME or J2ME is superset of J2EE ?



Thank you.

Regards
Baseet Ahmed

" There is substitute for papers,but none for Trees.Save Trees. "
 
Author
Posts: 3473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Question 1:
Does Java supports pointers ?
If yes then how?
If no then why?



Java does not support pointers as is supported in, for example, C++ Because pointers are unsafe. Java uses reference types to hide pointers and programmers feel easier to deal with reference types without pointers. Type safety and security can no longer be guaranteed because the garbage collector may relocate referenced objects, invalidating such pointers if arbitrary manipulation of pointers is allowed.

Question 2:
Is Java is fully Object-Oriented Language ?
If yes,then what about int,float datatypes and what about multiple inheritance?




Java is an Object Oriented language but does not support operator overloading and multiple inheritance. You can use multiple interface inheritance to get some of the benefits of multiple inheritnace. The definition of fully Object Ointed language is subjective and is a matter of opinion. I don't think operator overloading and multiple inheritance are strict requirements for an OO language.

Object oriented theorists define three fundamental aspects of an object oriented language: encapsulation, inheritance and polymorphism. Java supports all three.


Question 3:
J2EE is superset of J2ME or J2ME is superset of J2EE ?



I have not used J2ME myself so I will leave this question to fellow ranchers to answer. My simplified understanding is that:

J2ME is a subset of J2SE and J2EE is a superrset of J2SE
 
Baseet Ahmed
Ranch Hand
Posts: 225
Spring Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
arulk,
Thank you for the reply.


Post Movers,
I don't know why this post has been moved to here.
Please let me know.



Regards
Baseet Ahmed
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It was moved because it was off-topic for the forum "Jobs Discussion". That forum isn't for discussing Java.
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do we actually have a forum for blatantly cutting and pasting one's homework questions?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes we do!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe Ess:
yes we do!





I had forgotten about that, and was half expecting a link to the trash.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic