What are static and abstract methods?

Reply

Join Date: Oct 2008
Posts: 8
Reputation: Ninad16 is an unknown quantity at this point 
Solved Threads: 0
Ninad16 Ninad16 is offline Offline
Newbie Poster

What are static and abstract methods?

 
0
  #1
Dec 17th, 2008
What are static and abstract methods?What are the advantages of using them?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,609
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 464
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: What are static and abstract methods?

 
0
  #2
Dec 17th, 2008
What is food? What is water? What are the advantages of eating food and drinking water...?

At least make an attempt at understanding things before posting obvious questions whose answers can be easily found out using search engine of your choice.

Let's say that putting a bit of effort on your part and trying to understand things on your own is the first step towards enlightenment, my young padawan.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: What are static and abstract methods?

 
0
  #3
Dec 17th, 2008
That would seem to go against this poster's nature, given their current post history.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 33
Reputation: AlbertPi is an unknown quantity at this point 
Solved Threads: 2
AlbertPi AlbertPi is offline Offline
Light Poster

Re: What are static and abstract methods?

 
0
  #4
Dec 17th, 2008
1. An abstract method is a method that is declared without an implementation,also the abstract method is very useful for design pattern like factory and any class contains this method is abstract class.
For example, java.net.SocketImpl is an abstract class. It is used to create both client and server sockets.
2. static methodtatic means one per class and not for each object you can use them without creating an instance of a class.
For example java.lang.Math, this class has all static fields and methods. Also a singleton class uses static method is very useful for resource pools (database connection,etc.....).



Albert
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 8
Reputation: Ninad16 is an unknown quantity at this point 
Solved Threads: 0
Ninad16 Ninad16 is offline Offline
Newbie Poster

Re: What are static and abstract methods?

 
0
  #5
Dec 19th, 2008
people who find this query very obvious and basic,please don't respond.Please don't make personal attacks.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,188
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: What are static and abstract methods?

 
0
  #6
Dec 19th, 2008
There are no personal attacks, as far I can see s.o.s and Ezzaral stated obvious they you lack any interest in personal development as you just forsaken basic search of available resources of Sun for example (abstract and static) plus many others
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,609
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 464
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: What are static and abstract methods?

 
0
  #7
Dec 19th, 2008
> people who find this query very obvious and basic,please don't
> respond.Please don't make personal attacks.

You are too oblivious to realize that you never asked a query; it was a request for someone else to do your homework. Nowhere in your post have you shown any traces of having put any effort to solve the problem at hand.

And BTW, dear `Ninad16', don't PM me telling me what I should and shouldn't do. You can't tell someone to *not* reply to your threads as long as they replies follow the forum rules and stay on topic. And yes, I felt a need to chastise an *obvious* question since you were violating a forum rule and I felt it necessary to put you on track. Read the forum announcements.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC