Absolute Java (6th Edition)
Absolute Java (6th Edition)
6th Edition
ISBN: 9780134041674
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 1, Problem 1STE

If the following statement were used in a Java program, it would cause something to be written to the screen. What would it cause to be written to the screen?

System .out .println "Java is not a drink ." ;

Expert Solution & Answer
Check Mark
Program Plan Intro

Given:

A statement,‘System.out.println(“Java is not a drink”);’.

To find:

The output of the statement,‘System.out.println(“Java is not a drink”);’.

Explanation of Solution

Solution:

The statement,‘System.out.println(“Java is not a drink”);’, written in Java language will display the output as “Java is not a drink”.
As Java is an OOP language, there is a separate syntaxfor displaying something on the screen.
‘System.out.println’ is used for this purpose in the Java programming language.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Problem #11: 1111 FR 10 500000 300000 Problem #12 :  2222 NB 16 400000 300000 Problem #13: 3333 BO 16 400000 275000 Problem #14: 4444 PR 23 400000 200000
Use the following pseudocode for questions 18-20: Main Program: Start Declare variables idno, location, dept, budget, spent, msg Input idno, location, dept, budget, spent budgetMsg() Output idno, location, dept, budget, spent, msg Stop  budgetMsg() If dept < 20    If budget > 350000        msg = cut 7%    Else        msg = cut 6%     Endif  Endif      Question at position 18 18   Fill in the Blank  1 point  Question 18 is unpinned. Click to pin.    Question at position 18  What would the msg be set to if the following was input: Input: 1111 BO 20 400000 300000 Output: cut  Question Blank 1 of 1       Question at position 19 19   Question at position 19  What would msg be if the input was the following: Input: 2222 PR 14 100000 110000 Output: cut     Question 20  What would msg be if the input was the following: Input: 3333 FR 25 200000 100000
Use the following pseudocode for questions 21-23: Main Program: Start Declare variables idno, location, dept, budget, spent, msg Input idno, location, dept, budget, spent budgetMsg() Output idno, location, dept, budget, spent, msg Stop  budgetMsg() If dept < 20     If budget > 350000         msg = cut 7%     Else         msg = cut 6%     End if Else     msg = cut 5% End if         Question at position 21  What would msg be with the following input? Input: 1111 BO 20 400000 300000 Output: cut %         Question at position 22  What would msg be with the following input? Input:  2222 PR 14 100000 110000 Output: cut %       Question at position 23  What would msg be with the following input? Input:   3333 FR 25 200000 100000 Output: cut %

Chapter 1 Solutions

Absolute Java (6th Edition)

Ch. 1 - Can a Java program have two different variables...Ch. 1 - Give the declaration for two variables called feet...Ch. 1 - Give the declaration for two variables called...Ch. 1 - Prob. 14STECh. 1 - Prob. 15STECh. 1 - Prob. 16STECh. 1 - Convert each of the following mathematical...Ch. 1 - What is the output of the following program...Ch. 1 - What is the output produced by the following lines...Ch. 1 - Prob. 20STECh. 1 - Given the following fragment that purports to...Ch. 1 - What is the output produced by the following lines...Ch. 1 - What is the output produced by the following lines...Ch. 1 - What is the output produced by the following? Ch. 1 - What is the output produced by the following?...Ch. 1 - What is the output produced by the following?...Ch. 1 - What is the output produced by the following? Ch. 1 - Prob. 28STECh. 1 - Prob. 29STECh. 1 - What is the output of the following two lines of...Ch. 1 - Suppose sam is an object of a class named Person...Ch. 1 - The following code is supposed to output the...Ch. 1 - Prob. 33STECh. 1 - What is the output produced by the following Java...Ch. 1 - What is the normal spelling convention for named...Ch. 1 - Write a line of Java code that will give the name...Ch. 1 - Body Mass Index (BMI) helps in specifying the...Ch. 1 - The video game machines at your local arcade...Ch. 1 - Write a program that starts with the string...Ch. 1 - A government research lab has concluded that an...Ch. 1 - Write a program that starts with a line of text...Ch. 1 - Write a program for calculating the simple...Ch. 1 - Write a program that outputs the number of hours,...Ch. 1 - The following program will compile and run, but it...Ch. 1 - A simple rule to estimate your ideal body weight...Ch. 1 - Scientists estimate that roughly 10 grams of...
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
The Top Down Approach to Software Development; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=v9M8LA2uM48;License: Standard YouTube License, CC-BY