wood burning stoves 2.0
The moose likes Beginning Java and the fly likes java question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java question" Watch "java question" New topic

java question

kumara swamy adurthi

Joined: Mar 16, 2005
Posts: 4
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

Joined: Feb 05, 2001
Posts: 17271

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.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
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.
It is sorta covered in the JavaRanch Style Guide.
subject: java question
It's not a secret anymore!