Can any one say what is instance Method in java with example?
An instance method is a method of an instantiated class.
A simple example might be this: You have a Class representing Cat. Each Cat can do some things - it can meow, purr, catch mice, and so forth. Each of those things is the same action no matter which cat does it, so the method is method of the class Cat. But each particular meowing, purring, or catching of mice is done by one particular cat, so it's an instance method.
Cat fluffy = new Cat("Fluffy");
Cat spooky = new Cat("Spooky");
Cat mongo = new Cat("Mongo");
The methods you write are instance methods unless you declare them "static". Static methods pertain to the class as a whole. For your Cat class, you might have a method like "preferredFood()" which would return the string "tuna", since as we know all cats prefer tuna to all other foods. If we discover that cats actually prefer filet mignon to tuna, you could change preferredFood() so that it returns "filet mignon", and it would now return "filet mignon" for all cats.
Your contributions to DaniWeb are very welcome, but please check the dates before responding to an old thread. @prem2 had his answer 2 years ago, so your answer is (1) not needed and (2) 2 years too late.
Your first "helpful" link is for C#, not Java.
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...