• Post Reply Bookmark Topic Watch Topic
  • New Topic

Data and procedures  RSS feed

 
Miles Davis
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I learned in my Java textbook that everything in programming essentially consists of data and procedures. This makes some sense, because in an object, there is data (instance variables) and procedures that manipulate the data (methods). However, I am a little confused about what make up other constructs in Java. For example, an if statement: It is not data, so is it a type of procedure? Is a while-loop a procedure, since it's not data? What about an assignment? If these are not data or procedures, then what are they? How do they fit in to the foundations of computer science and programming? I am basically asking for an effective taxonomy of different programming constructs so that it all acts as a cohesive whole in my brain.
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Miles Davis,

Please mention which text book you're referring to?
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are called control flow statements
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!