Facilities of object oriented java

What could be the two facilities which Java, as an 'Object Oriented' language, has which JavaScript , as an 'Object Based language, does not have.

Sounds to me like you're one of those guys who takes exam questions right off the exam and just posts them here expecting others to answer your exam for you.

Similar Messages

  • Java is 100% pure object oriented language or not?

    PLS help me...?
    I am get confussed.
    Java is 100% pure object oriented language or not?

    the only full OO programming language on thisplanet
    is SmallTalk.On your planet maybe. On mine, at least Eiffel
    also exists, probably more unknown others too. Some
    count Ruby, but I never looked at it.Ruby is pure OO too, FYI.
    the only full OO programming language on thisplanet
    is SmallTalk.Care to explain it in some more detail? What
    exactly is 100% OO, b.t.w.?No, I don't careWow, what an incredibly unhelpful response.
    In essence, 100% OO implies that every type within the language is an object. Since Java has primitive types like int, boolean, float etc, it cannot count as 100% OO.

  • Java is a Partially Object-Oriented Programming (True/False)

    Hi everybody,
    Many of them saying that Java is not purely Object-Oriented Programming.
    I am very much confusing on that, so please help me to confirm that "Java is a Partially Object-Oriented Programming Language".

    JAVA_NV wrote:
    gopivista wrote:
    Hi everybody,
    Many of them saying that Java is not purely Object-Oriented Programming.
    I am very much confusing on that, so please help me to confirm that "Java is a Partially Object-Oriented Programming Language".Java is not purely Object-Oriented Programming,for this two reasons are there
    one is we cant create Objects to the primitive data types and there is no multiple Inheritance concept .While there are many definitions of "purely object oriented," and no on widely accepted standard, I've never heard one that requires multiple inheritance. That would NOT be a reason why Java is not fully OO.

  • Java is pure object oriented programing language or not why?

    please clear
    java is pure object oriented programing language or not why?

    And there is some concepts of object orientation that
    Java not implements like: Operator
    Overloading and Multiple Heritage. But, i think
    that we can live without those features.
    And the sucess of Java is a proof of this.I don't believe that operator overloading and multiple inheritance are required aspects of object programming.

  • Why java is called pure object oriented.

    i know that java is called as pure object oriented language.
    why it is called so even though it has primitive datatypes and also it doesnot support multiple inheritance completely. it only supports in the case of interfaces but not in the case of classes. then why it is called pure object oriented.

    Its because you cannot write an executable java program without creating an object. Well, you can:
    public class a
      public static void main( String a[] )
    }In contrary to C++, there can be no variables or functions in the wild (outside a class).
    You can not create an executable java program without creating a class (but not forcibly its instance, an object.)
    The "pure object oriented" wording in this sense has not really much importance, it is rather a marketing ploy.

  • Why java is called as true object oriented language?

    HI Friends,
    Though few oops concepts is not supported , why java is called as truly object oriented language and C++ as not a purely object oriented language???? Please, if any one know , give me the answer.
    Thanks to all.

    few oops concepts is not supportedwhich concepts?
    as far as i know...to be OO, you must supports
    encapsulation, abstraction, inheritancxe, composition (aggretration, et all) and polymorphism. Java supports all those comcept..now..Java is a hybrid due to what Jverd has pointed out.
    the only pure OO language that i know of is SmallTalk. they have Meta class that can create Class object. and all their primitaives are object.
    C# comes close, but their Class are not object.

  • Is java 100% pure object oriented?

    I am very confuse is java 100% pure object oriented language.
    bcoz
    1)object oriented means everything should be in object but
    primitive data type is not object.
    2) java don't support multiple inheritances which is one of the oop 's
    concept

    I'd say that java is 100% java. No more, noless.
    I'm gonna say it's about 99.4738383% java. For
    no
    reason other than to confuse idiotsSomeone's always bumping their heads against
    some
    arbitrary theoretical purity when they aremissing
    what was, is and always has been most important:
    functionality.Functionality matters virtually nothing to thepeople
    that post these "questions". All that matters is
    being able to say the right thing in interviews so
    they can get a job and get carried through their
    career by people who actually know what they're
    doing. See it all the timeHehe, who carries you whilst you post here all day
    :P
    Ant builds, mostly :p

  • Is Java 100% Object Oriented?

    Is java 100% pure OOP?
    I said no.. the reason is we can use primitive data types(which is not a
    object)also....and also static method which can be accessed without
    creating objects...Hope u understood my problem.
    Can anyone give clear idea about this and mention if anything wrong with
    my answer.........

    Hi Guys,
    No, Java is not a pure Object Oriented Language.
    Many languages claim to be Object-Oriented. While the exact definition of the term is highly variable depending upon who you ask, there are several qualities thati feel an Object-Oriented language should have:
    * Encapsulation/Information Hiding
    * Inheritance
    * Polymorphism/Dynamic Binding
    * All pre-defined types are Objects
    * All operations performed by sending messages to Objects
    * All user-defined types are Objects
    Java fails in the fourth condition because Java has primitive types viz; int ,float etc.....
    And it also fails at the fifth condition because it fails to satisfy the fourth condition.
    Only three languages are pure Object-Oriented
    * Eiffel
    * Smalltalk
    * Ruby
    For other details u can visit the blog created by me at http://noviceinjava.blogspot.com/
    Though it has just started it will certainly grow as people get to know bout it
    Thanks n Regards
    Naveen M

  • Any good Java object oriented book?

    Hi,
    I am looking for a Java book that teaches good object oriented programming. Is there any good Java object-oriented book in the market?
    Thanks.

    "Thinking in Java" 2nd Edition by Bruce Eckels. You
    can download it from his website - the url escapes me
    at the minute. You should be able to find it no
    problem though.I second that recommendation (although it's "Eckel" without the "s"). He now has a Beta 3rd edition of the book.
    The URL is http://www.bruceeckel.com/

  • IS Java Is puer Object Oriented Language

    Pls I don't agree that java is puer OO.
    This is the example..
    I have 2 classes
    class One {
    public void main( Strin...) {
    Two t = t new Two();
    t.print();
    class Two {
    public void print ( ) {
    S.o.p(" Not a object Oriented");
    Now if i compil the both the class ane run the
    first classs java One
    it prints the msg... is fine
    buu now i change the access modifier of the class Tow of the method print() and private ..
    and compile the class Two not the One...
    then i run the class One..
    still it prints the msg..
    It does't give any error... untile i recompile the one.java with the Two.class the it says print() can not be accsed..
    can u say now it violate.. the OOPs concept..

    You have discovered a part of Java that when you think OO does not do what you would expect. The system itself does not act in an OO way, but this does not mean that the language is not. It may not yet be Component friendly in a way that allows you to write components and then dynamically deploy them while thinking of the deployed components as objects that are instances of the component ?class?.
    It took me a long time to accept that every single person has a different concept of what OO means. I had someone at Sun (during an interview) tell me that for pure OO an accessor or mutater should do nothing more than return a member or replace the value of that member with the exact value in the parameter. (Needless to say I didn't want or receive that position although I still wouldn?t mind working for Sun :)
    I always thought that a ~pure~ OO language had to be completely type safe. (or as close as you can get) There could be no run time type errors. Well, this counts out not only Java, but also Smalltalk.
    I am also of the opinion that there should be no "base types" (no mater how they are handled under the covers) C# does this nicely.
    Then there is Parametric Polymorphism, which can be done nicely by generic typing and will be available in Java soon. This addition to a language is invaluable in allowing the developer to think in an OO way.
    Invariants are another language feature that some would require for OO.
    The point is that everyone has a different set of opinions about all of these things. I am absolutely certain that my opinions are the correct ones, as is anyone who is passionate about OO.
    In my opinion Generics and Accretions have really made Java come of age. It is finally a language that I will think of as OO enoug.
    Hopefully some day we will also get asynchronous methods (instead of threads) a better defined contract specification, and do away (at least on the surface) with base types. Then it would be a real OO system.
    Wait, wait, we could add orthogonal persistence, or at least a typed persistence. We could outlaw public member feilds, We could fix the typeing issues with interfaces, we could...
    sigh At least Java is moving forward. It may be dog slow, but as someone recently told me, there are actualy people out there building real systems with Java and they need it to move slow enough to get their work done, so they can make money, so they can pay people to develop.
    You got to make sure that while you are reaching for that pie in the sky, it doesn't fall on your face. But then I like a bit of slapstick.

  • Is Java pure Object-Oriented ????

    hi friends,
    wat do u feel, Is java a pure object oriented language??? then wat is object oriented pgming ???
    bye..

    > wat do u feel, Is java a pure object
    oriented language??? then wat is object oriented
    pgming ???
    On "purity" as a measure of object-orientedness:
    However, this definition is problematic in that it implies that "purity" is a valid concept. Yet, there is no accepted definition of the term "pure OO language". Despite years of discussion and argument on the net, and in other circles, I have never seen anyone present a definition of a "pure OOPL" that met with general agreement by others.
    -- Robert Martin, founder, CEO, and president of Object Mentor Inc., software industry leader.
    On the value of using "purity" as a measure of a programming language:
    I will not go into the discussion about ``purity'' beyond mentioning that I think that a general purpose programming language ought to and can support more than one programming style (``paradigm'').
    -- Bjarne Stroustrup, designer and implementer of the C++ programming language, etc.
    ~

  • Expose Object Oriented Service code as Web Services?

    Hello All,
    I would appreciate for your insight on this matter!
    Web Services are basically RPC (Procedure Oriented) over Soap. Each service invocation by a client results a procedure execution on the server side (In many case, a service class may need to be instantiated before the procedure can be called).
    Suppose I have developed server-side logics in Object Oriented manners. How can I expose the OO server logics as Web Services? Does JDeveloper handle OO services any different from PO (procedure-oriented) services as far as the generated wrapper code/interface and WSDL?
    Specifically, I have the following example in mind. Assume we are able to successfully expose an OO services. A client calls one of the OO service (let's say service1 in portType1) the 1st time, and establish some transit state (not committing into DB), the same client subsequently calls another service (service2) of the same server portType1. How would the server retrieve the transit state established earlier by service1 while executing service2? (note, this situation would not be resulted in a procedure-oriented case. since each RPC call is independent from the others)
    I realize that "stateful" deployment may be of an option. However, stateful seems relying on client cooperation (e.g., via cookies) to establish context across multiple invocations. This may or may not be possible given an arbitrary client parties write its client code based on a WSDL.
    Another option I can think about is for Jdeveloper to generated different code for PO services vs. OO services. However, it seems not the case in current Jdeveloper.
    Thank you so much!
    jason

    Web services in general have two styles of invocation: RPC style and Doc style. RPC maps as you say directly to methods on Java class (or if a DB PL/SQL package to procedures and functions).
    The alternative, DOC, generally (though not all the time) maps to a message oriented interface. Often DOC style Web services map to messaging infrastructure such as Java Message Service Queues and Topics.
    That said RPC works well with EJB's, the component model for J2EE.
    Often what folks will do is build a service layer that is very coarse grained when exposing backend infrastructure as Web services. This abstraction typically hides a more OO underpinning (or quite often hides a very procedural backend too).
    The bottom line is the Web services do not force an OO paradigm but nor do they hinder you in any way from adopting an OO paradigm.
    In terms of JDeveloper currently it supports RPC and supports DOC only with some tweaking. On the server side, the Oracle9iAS infrastructure supports both DOC and RPC.
    Hope this is a start to answering what I think is a hard question to answer!
    Mike.

  • Object oriented Concept

    Hi all, I feel confuse on object oriented.
    Basic, I get change to developer some online form. I use java bean , Servlet, JSTL and Mysql. In my java bean I only have the attribute set and get pattern. I just wonder I put my delete , search and update action on Servlet , not in the java bean , is that means that Is not object oriented enough? How to improve it ?
    thank you!

    Thank you for the reply, I did use some of the Spring in my Project, but only limit in flower control , such as simple spring + acegi , a lot of control still in servlet. I also try some other new stuff like display tag , but that only work on if your jsp page is out of the WEB-INF. I also go through some tutorials on JSF , but not time to figure out how JSF work with acegi yet.
    1 mention the display tag and JSF just try to explain, I looking for a new framework. But don?t want the whole framework to tire me up. For example in simple servlet I can use ? /WEB-INF/ + target to send my flower to any JSP page depend on the link that I click , but I don?t how to handle it spring. May be I did not get the real concept of spring yet. I looking for some framework that allow me to use new technology , but still allow me to use some old technology , like servlet then I can finish my project on time.
    But what is the relation between web framework and object oriented concept??

  • Object Oriented Patterns and Visio

    Visio question:
    Does anyone know if there are established shapes for each (or any) of the object oriented patterns? If not, is anyone working on that or interested in that?
    Since they all have names (Momento, Proxy, Iterator, Mediator, Observer, etc.) it seems like they ought to each have their own shape. Since Object Oriented is all about communication of intent, each pattern having its own recognizable shape would go a long way toward a more meaningful communication through diagram. Also, if they each had their own shape, then the super-patterns (based on commonly grouped patterns and interactions) could also be easily represented.
    Blaine

    I'm kind of making an assumption here and if it's in error then feel free to disregard the rest of this post.
    Assumption that you're thinking terms of shapes for representing in UML the various patterns. Everything you need is right there in front of you already regardless of whether you use Visio, Rational, Poseidon or some other UML tool.
    Patterns are not individual constructs. One does not make a Mediator class. One makes a Java class that is an implementation of the Mediator pattern. As such you would see in the static class diagram the same grouping of classes for an X Mediator as you would for Y Mediator. That is the image you're looking for. It's not a single widget that you drag onto the screen, it's in the pattern itself.
    If, however, you're talking about something like a graphical representation to give to managers that says "Here be Momento patterns", then I would postulate that you're trying to communicate information that they don't need nor should they concern themselves with. Patterns are an implementation issue. They deal with, "How" we will solve a problem, not what problem will we solve. Mangaers, IMNSHO, need only concern themselves with what problems we will solve, not how they will be solved.
    Just my 2 krupplenicks on the subject, your milage may of course vary.
    PS.

  • Trying to understand the basic concept of object oriented programming.

    I am trying to understand the basic concept of object oriented programming.
    Object - a region of storage that define is defined by both state/behavior.
    ( An object is the actual thing that behavior affects.)
    State - Represented by a set of variables and the values they contain.
    (Is the location or movement or action that is the goal that the behavior is trying to accomplish.)
    Variables- (What does this mean?)
    Value - (What does this mean?)
    Behavior - Represented by a set of methods and the logic they implement.
    ( A set of methods that is built up to tell's the how object to change it's state. )
    Methods - A procedure that is executed when an object receives a message.
    ( A very basic comand.For example the method tells the object to move up, another method tells the method to go left. Thus making the object move up/left that combination is the behavior.)
    Class - A template from which the objects are created.
    ( I am very confused on what classes are.)
    - The definitions of the words I obtained from the "Osborne Teach Yourself Java". The () statements are how I interperate the Mechanisms (I do not know if Thats what you call them.) interact with each other. I understand my interpretation may be horribly wrong. I will incredibly appreciate all the support I may get from you.
    Thank you

    Object oriented programming is a replacement for the older idea of procedural programming (you can research procedural programming in google). As I understand it, in procedural programming, you have a step by step set of function calls to accomplish some task. Each function receives a data structure, manipulates it, and passes it to the next function. The problem with this is that each function preforms some action for the overall task and can't easily be reused by some other task. Its also harder to read the flow of what is happening with raw data structures flying all over the place.
    In object oriented programming, an object calls a function of another object and receives back, not a data structure, but another object. Objects contain a data structure that can only be accessed by its functions. An object is not so much a sub component of a bigger task, as it is a service that any other task can use for any purpose. Also, when you pass an object to the caller, the caller can ask questions about the data structure via its functions. The developer doesnt have to know what the previous function did to the data by reading up on any documentation, or having to reverse engineer the code.
    I suggest the best way of learning this is to code something like a library object.
    A library object contains a collection of book objects
    A book object contains a collection of chapter objects
    A chapter object contains a collection of paragraph objects
    A paragraph object contains a collection of sentence objects
    A sentence object contains a collection of word objects.
    Add functions to each object to provide a service
    Example: A library object should have a:
    public void addBook(Book book)
    public Book getBook(String title)
    public boolean isBookInLibrary(String title)
    The key is to add functions to provide a service to anyone who uses your object(s)
    For example, what functions (service) should a paragraph object provide?
    It shouldn't provide a function that tells how many words there are in a sentence. That function belongs to a sentence object.
    Lets say you want to add a new chapter to a book. The task is easy to read
    if you write your objects well:
    Sentence sentence1=new Sentence("It was a dark and stormy night");
    Sentence sentence2=new Sentence("Suddenly, a shot ran out");
    Paragraph paragraph=new Paragraph();
    paragraph.addSentence(sentence1);
    paragraph.addSentence(sentence2);
    Paragraphs paragraphs=new Paragraphs();
    paragraphs.addParagraph(paragraph);
    Library library= new Library();
    library.getBook("My Novel").addChapter("Chapter 1",paragraphs).
    Now, lets say you want to have a word count for the entire book.
    The book should ask each chapter how many words it contains.
    Each chapter should ask its paragraphs, each paragraph should ask
    its sentences. The total of words should ripple up and be tallied at each
    stage until it reaches the book. The book can then report the total.
    Only the sentence object actually counts words. The other objects just tallies the counts.
    Now, where would you assign a librarian? What object(s) and functions would you provide?
    If written well, the project is easily extensible.

Maybe you are looking for

  • Is it possible to make PCTFREE 0 a database-wide default via init.ora ?

    In our batch environment we drop/create lots of tables as follows - CREATE TABLE X NOLOGGING PCTFREE 0 PARALLEL AS SELECT ......... Since the tables get created from scratch every time and don't get updated - we use PCTFREE 0 to minimize space usage

  • Display variable values selected as header in WAD

    Hi All Gurus, I need to display the variable values entered for running the report as a header to the report being displayed. I'm using NW2004s BI and standard template 0analysis_pattern. Is there a way I can display the variable values as header inf

  • Issue with layout on tablet size devices

    Hi All, Can anyone tell me why when the window size is reduced down or is opened on a tablet size device, that the 'maindiv' moves to the bottom of the page. I have tried changing, margins, widths, max-widths but nothing seems to work. It seems to me

  • Data paging with Flex and ASP Vb

    Can some help me with the (asp) code to get this working? With Regards, Dik

  • Error Message for IT0001

    Hi,    I am trying to validate field plans(position) of IT0001 in the program ZP000100. I am trying to give an error message in PAI, but it is not making the fields editable. I know that we need to add the fields inside CHAIN END CHAIN which we need