Can java classes be called as framework?

M

Muhammed

Hi All,

I have read many articles like API vs Framework, diff between API and
framework etc.
I would like to know can java jdk classes be called as framework? is
it a candidate for framework or it is just a library?

i know this will not make any diff to development.! But i wonder why
every one, when they speak about .Net they say Framework and When they
talk about java they say library?
 
S

Stefan Ram

Muhammed said:
I would like to know can java jdk classes be called as framework?

1st) A class can not be called in Java, a method can be called.

2nd) A framework ist not called at all, it calls you!

A framework is kind of a part of an implementation of the
Strategy pattern or the Template Method Pattern. It provides
the »template«, while its client provides the »hook methods«.
 
M

Muhammed

  1st) A class can not be called in Java, a method can be called.
What you ment by class can not be called? My questiaon is java
provides many librarys, collection of classes to build applications.
Can we call these as a Framework? Or its still just a library?
  2nd) A framework ist not called at all, it calls you!

  A framework is kind of a part of an implementation of the
  Strategy pattern or the Template Method Pattern. It provides
  the template , while its client provides the hook methods .

Yes this defination is right. According to this can we call java JDK
classes (like FIle, String all standard classes), jars (standard run
time jars like rt.jar etc) as Framework?
If no, then why we call .Net framework?
 
L

Lew

Stefan said:
  1st) A class can not be called in Java, a method can be called.

  2nd) A framework ist not called at all, it calls you!

  A framework is kind of a part of an implementation of the
  Strategy pattern or the Template Method Pattern. It provides
  the template , while its client provides the hook methods .

It's pretty clear the OP meant "called" as in English, not as in
computer science.
 
L

Lew

Muhammed said:
I have read many articles like API vs Framework, diff between API and
framework etc.

"Framework" is not a precise term. In some contexts one might refer
to the standard API as a "framework", but that's not conventional.
I would like to know can java jdk classes be called as framework? is
it a candidate for framework or it is just a library?

I think it's a bit unfair to the standard API to call it "just" a
library.

Normally one refers to a library or set of libraries, along with
associated tools such as perhaps a pre-compiler or bytecode-rewriter,
as a "framework" if it provides standardized ways to handle a common
class of problems such as window generation or XML-to-object mapping.
Again, "framework" is a rather loose term, so usage varies.
 
D

Daniel Pitts

It's pretty clear the OP meant "called" as in English, not as in
computer science.
It wasn't clear to me, the "as" changes the meaning of the
pseudo-sentence enough that the ambiguity swings toward Stefan's
interpretation IMO.
 
A

Arne Vajhøj

I have read many articles like API vs Framework, diff between API and
framework etc.
I would like to know can java jdk classes be called as framework? is
it a candidate for framework or it is just a library?

i know this will not make any diff to development.! But i wonder why
every one, when they speak about .Net they say Framework and When they
talk about java they say library?

Those terms are not that well defined.

But in my opinion:

library = bunch of functions/classes

framework = library of high level functionality + recommended way of
using the library

Wikipedia has a slightly different definition:

http://en.wikipedia.org/wiki/Software_library
http://en.wikipedia.org/wiki/Software_framework

rt.jar is definitely a library.

I would say that certain parts of it would qualify as frameworks.

Can we call a library consisting of both frameworks and non-frameworks
for a framework?

Flip a coin!

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top