File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Type of language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Type of language" Watch "Type of language" New topic

Type of language

Jools Birch

Joined: Nov 01, 2003
Posts: 6
I'm wondering if Java is a declarative or a procedural language.
I have another question if I get an answer that I expect.
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
IMO, I would say that Java is a procedural language, because you are specifying the sequence of steps needed to produce the desired result. An example of a declarative language might be SQL where you specify the result you want, but you don't specify how the results are to be obtained [though you can give hints ...]
Having said that, Java differs in approach from a "traditional" procedural language such as Basic or FORTRAN. But even with the object orientation of Java, it's still more like a procedural language than a declarative one.
[ November 07, 2003: Message edited by: Wayne L Johnson ]
I agree. Here's the link:
subject: Type of language