• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insatance method

 
Vrushank Shukla
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is an instance method???
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Warm welcome to the ranch Vrushank. Just type your questions as they are. Quote functionality is only for quoting someone else's answers /comments. Before answering your question, are you new to Java?
 
Vrushank Shukla
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey thanks
And not that much new, but yes you can say that. As in now I am reading SCJP6. But while reading I get confused in some technical language. Suppose an example using super to invoke an overrridden method only applies to instance methods. But I can't get exactly meaning of instance method.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you keep this book aside for now. Read from "Head First Java" by same authors. It explains such terminologies and concepts in a vary clear manner. It is imperative that you have your fundamentals clear. The SCJP for Java 6 book is written presuming that the person knows all these things already.

My answer to your question: Instance methods are methods which are only accessible through the instances of objects of that class. The other type of methods are static methods. They can be directly invoked on the class name.
 
Vrushank Shukla
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks I got it.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome. Did you keep the SCJP book aside by the way?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15354
39
Android IntelliJ IDE Java Scala Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic