• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java with Pointers and OOPS

 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • 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. "
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • 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
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • 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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we actually have a forum for blatantly cutting and pasting one's homework questions?
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic