Search:

Type: Posts; User: rohan22

Search: Search took 0.09 seconds.

  1. Re: What's the difference between a static and non-static method?

    As i said here is certain changes to your queries

    1)methodUser.nonStaticMethod();.............. works fine.

    2)methodUser.staticMethod();...............you can simply call as...
  2. Re: What's the difference between a static and non-static method?

    If you want a particular method of a class (w.r.t its access specifiers) to be called, without creating an object of that class we usually make it as static.
    But on the other hand if you want a...
Results 1 to 2 of 2