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
posted 12 years ago
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 ]