Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java question

 
kumara swamy adurthi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is java purely object ? or not ? if not why ?

is there any advantage or disadvantage of using static ? what are the advantages and what are the disadvantages?


what are the advantages of using interfaces over abstract class.? or vice versa.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is for Servlets questions, your Java In General question is not about Servlets. Please post your questions in the most appropriate forum.

I will move this thread to the Java In General (Beginner) forum for you.

Mark
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These sound like Assignment questions. If you can demonstrate some understanding, we can help, but not a full answer which you may pass as your own. But to get you started:

Interfaces - Bare classes with no implementations, just method "headers". Like a contract.

Abstract - Like interfaces, but some implementation may be provided for certain methods. Cannot create instances of Abstract classes.

Now ask yourself which is better and why.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic