Questions from Starting Out With Java


Q: Why are variable names like x not recommended?

Why are variable names like x not recommended?

See Answer

Q: What is a compiler?

What is a compiler?

See Answer

Q: Briefly describe the difference between variable assignment and variable initialization.

Briefly describe the difference between variable assignment and variable initialization.

See Answer

Q: What is the difference between machine language code and byte code?

What is the difference between machine language code and byte code?

See Answer

Q: Write a method that accepts a String as an argument. The

Write a method that accepts a String as an argument. The method should use recursion to display each individual character in the String.

See Answer

Q: Briefly describe what programming style means. Why should your programming style

Briefly describe what programming style means. Why should your programming style be consistent?

See Answer

Q: Is encapsulation a characteristic of procedural or object-oriented programming?

Is encapsulation a characteristic of procedural or object-oriented programming?

See Answer

Q: Assume the file SalesAverage.java is a Java source file that

Assume the file SalesAverage.java is a Java source file that contains documentation comments. Assuming you are in the same folder or directory as the source code file, what command would you enter at...

See Answer

Q: What part of an object forms an interface through which outside code

What part of an object forms an interface through which outside code may access the object’s data?

See Answer

Q: Explain what is meant by the phrase “conditionally executed.

Explain what is meant by the phrase “conditionally executed.â€.

See Answer