wood burning stoves*
The moose likes Java in General and the fly likes Java with Pointers and OOPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java with Pointers and OOPS" Watch "Java with Pointers and OOPS" New topic
Author

Java with Pointers and OOPS

Baseet Ahmed
Ranch Hand

Joined: Dec 18, 2006
Posts: 224
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

Joined: May 31, 2007
Posts: 3219
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


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Baseet Ahmed
Ranch Hand

Joined: Dec 18, 2006
Posts: 224
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

It was moved because it was off-topic for the forum "Jobs Discussion". That forum isn't for discussing Java.


[Jess in Action][AskingGoodQuestions]
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Do we actually have a forum for blatantly cutting and pasting one's homework questions?


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

yes we do!


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
Originally posted by Joe Ess:
yes we do!




I had forgotten about that, and was half expecting a link to the trash.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java with Pointers and OOPS
 
Similar Threads
J2ME - highlevel overview
Java Technologies Doubt (SCJA)
Why Java ?
To Author Michael Yuan
Legacy Systems