Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 17309
11
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!