1) I believe path can be absolute or relative and represents a variable storring the way to a directory/file on your drive, a classpath is also a path storred in a property that your virtual machine can read. 2) Interface can not be called as 100% abstract class, for example, you can have in abstract classes any static methods methods that you can call using a reference of the specific abstract class type. More exactely, for example java.util.Calendar class is abstract, you can create an instance of it like
Calendar cal = Calendar.getInstance(); you couldn't have done this if it was an interface. And there are other differences, not to mention that an abstract class, like any class has a costructor and it does run whenever an inherriting, nonabstract type, object is created by calling its own constructor, although you can not specifically create an instance of an abstract class by calling it's own constructor. On Jul 6, 9:06 am, Rohit Bansal <[email protected]> wrote: > Hello guys, > > 1.)Can anyone would kindly answer me back what's the difference between path > and classpath? > 2.)When an interface can be called as 100% abstract class... then ultimately > what was the need to make keyword 'interface'... I mean they can have a > abstract class with all abstract mathods... Why then developers must have > thought to bring up Interfaces in Java? > > Thanking You, > Rohit. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
