Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type of language

 
Jools Birch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic