chapter 4 Flashcards
do programmers approach a new project fast and easy?
Don’t believe the wise guys who say they never go through careful step by steps when programming. Even experienced programmers approach a new project slowly and carefully.
what kind of program displays in the console view?
When you run a text based program, the input and output appears in Eclipse’s Console view.
what is a GUI program?
a GUI (graphical user interface) program displays windows, buttons, text fields, and other widgets to interact with the user.
What are the similarities between English and Java and what are the differences and which ones easier to learn?
English expresses ideas to people, and Java expresses ideas to computers. What’s more, both English and Java have things like words, names, and punctuation. In fact, the biggest difference between the two languages is that Java is easier to learn than English. (If English were easy, computers would understand English. Unfortunately,
is it important when using capitals or lower case letters in your code? why?
The java proGRAMMing lanGUage is case-sensitive. ThIS MEans that if you change a lowerCASE LETTer in a wORD TO AN UPPercase letter, you chANge the wORD’S MEaning. ChangiNG CASE CAN MakE the enTIRE WORD GO FROM BeiNG MEANINGFul to bEING MEaningless.
can you change the meaning of a java keyword?
Java keyword has a specific meaning — a meaning that remains unchanged from one program to another.
what 3 words are not java keywords but can be mistaken as keywords?
true, false, and null are not called Java keywords.
what do java keywords posess that is predetermined? who created the java keywords?
In Java, each keyword has an official, predetermined meaning. The people at Oracle, who have the final say on what constitutes a Java program, created all of Java’s keywords.
You can’t make up your own meaning for any of the Java keywords. For example, you can’t use the word public in a calculation:
can you change the meaning of a java keyword?
You can’t make up your own meaning for any of the Java keywords. For example, you can’t use the word public in a calculation:
what is a java identifier?
In computer programming, an identifier is a noun of some kind. An identifier refers to a value, a part of a program, a certain kind of structure, or any number of things.
how does an identifier name relate to it’s meaning? where can you find the definition of java identifiers?
Most programming languages have identifiers with agreed-upon meanings. In Java, almost all these identifiers are defined in the Java API.
what is a literal in Java?
A literal is a chunk of text that looks like whatever value it represents.
what symbol is permissible when writing numbers as literals in a java program?
Starting with Java 7, numbers with underscores are permissible as literals.
in java what do curly braces act like?
A pair of curly braces acts like a box.
why is it important to indent your code carefully?
I can’t emphasize this point enough: If you don’t indent your code or if you indent but you don’t do it carefully, your code still compiles and runs correctly. But this successful run gives you a false sense of confidence. The minute you try to update some poorly indented code, you become hopelessly confused.