Results 1 to 2 of 2
  1. #1
    jmohandos304 is offline Member
    Join Date
    Apr 2014
    Posts
    71
    Rep Power
    0

    Default Difference between operator and method

    I know instanceof is an operator and println is a method. But what is the difference between the two? How are they different/same?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    929
    Rep Power
    2

    Default Re: Difference between operator and method

    instanceof is builtin in the language, while you create methods yourself (or the Java API developers). This is comparing apples with elephants.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Unary operator and binary operator
    By suhaas.mohandos@gmail.com in forum New To Java
    Replies: 10
    Last Post: 08-27-2013, 04:39 PM
  2. Replies: 5
    Last Post: 01-21-2012, 11:02 PM
  3. Replies: 1
    Last Post: 10-06-2011, 02:26 PM
  4. Replies: 6
    Last Post: 02-11-2009, 10:51 AM
  5. Method/Operator Overloading
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-01-2007, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •