What is the output of the following program? Note that the program contains several comments. public class
Question:
What is the output of the following program? Note that the program contains several comments.
Transcribed Image Text:
public class Commentary { 2 public static void main (String [] args) { System.out.println ("some lines of code"); System.out.println ("have // characters on them"); System.out.println ("which means "); // that they are comments // System.out.println ("written by the programmer."); 8. System.out.println ("lines can also"); System.out.println ("have /* and */ characters"); 10 /* System.out.println ("which represents"); 11 System.out.println ("a multi-line style"); 12 */ System.out.println ("of comment."); 13 } 14 3.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 57% (7 reviews)
Output of Commentary progr...View the full answer
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted:
Students also viewed these Computer science questions
-
What is the output of the following code segment? t = 10; if(t > 7) { System.out.print("AAA"); System.out.print("BBB"); } a. AAA b. BBB c. AAABBB d. Nothing
-
What is the output of the following code segment? t = 0; if(t > 7) System.out.print("AAA"); System.out.print("BBB"); a. AAA b. BBB c. AAABBB d. Nothing
-
What is the output of the following code segment? t = 7; if(t > 7) { System.out.print("AAA"); System.out.print("BBB"); } a. AAA b. BBB c. AAABBB d. Nothing
-
Be able to explain how land policy shaped economic growth in the United States.
-
An adiabatic steam nozzle has steam entering at 300 kPa, 150C, and 45 m/s, and leaving as a saturated vapor at 150 kPa. Calculate the actual and maximum outlet velocity. Take T0 = 25C.
-
The following cash flow information pertains to the 20X1 operations of Matterhorn, Inc., a maker of ski equipment: Cash collections from customers $ 16,670 Cash payments to suppliers of inventory...
-
The drive used in a bicycle is (a) belt drive (b) rope drive (c) gear drive (d) chain drive
-
Write the letter of the method that is most applicable to each statement. a. Specific identification b. Average cost c. First-in, first-out (FIFO) d. Last-in, first-out (LIFO) ____________ 1. Is the...
-
Please provide feedback and improve this argument for the topic the offence/defence of infanticide ultimately just an objectionable patriarchal condescension toward women. Disregards socio-political...
-
Suppose two friends live in different cities on a map, such as the Romania map shown in Figure 3.2. On every turn, we can simultaneously move each friend to a neighboring city on the map. The amount...
-
Write a program called FarewellGoodBye that prints the following lyrics. Use static methods to show structure and eliminate redundancy in your solution. Farewell, goodbye, au revoir, good night! It's...
-
Write a program called Shining that prints the following line of output 1000 times: All work and no play makes Jack a dull boy. You should not write a program that uses 1000 lines of source code; use...
-
On January 1, 2018, Outreach Incorporated sold services to a Canadian supply company and accepted a three-year note in the amount of 11,000 Canadian dollars. Assume that exchange rates between the...
-
Explain the terms: (i) timing differences, (ii) permanent differences, (iii) deferred tax liability and (iv) deferred tax asset as per accounting standard related to taxes on income.
-
Describe in brief disclosure requirements of accounting standards related to accounting for fixed assets and investments.
-
Explain the concepts of basic earnings per share and diluted earnings per share. How are they computed?
-
What is the basis of recognising intangible assets? How are they amortised? What are the major disclosure requirements of accounting standard for such assets?
-
What is impairment of assets? Is reversal of impairment loss feasible? Explain your answer based on the requirements of accounting standard.
-
Light in a vacuum is incident on a transparent glass slab. The angle of incidence is 35.0. The slab is then immersed in a pool of liquid. When the angle of incidence for the light striking the slab...
-
Ask students to outline the reasons why the various elements of culture (social structures and control systems, language and aesthetics, religion and other belief systems, educational systems, etc.)...
-
Let B be an array of size n 6 containing integers from 1 to n5 inclusive, five of which are repeated. Describe an algorithm for finding the five integers in B that are repeated.
-
Give Java code for performing add(e) and remove(i) methods for the Scoreboard class, as in Code Fragments 3.3 and 3.4, except this time, dontmaintain the game entries in order. Assume that we still...
-
Suppose you are given an array, A, containing 100 integers that were generated using the method r.nextInt(10), where r is an object of type java.util.Random. Let x denote the product of the integers...
-
1). The Electronic Corporation manufactures two electrical products: air conditioners and large fans. The assembly process for each is similar in that both require a certain amount of wiring and...
-
After reviewing oceanview marine company's case materials, and reviewing the unaudited account balances, what is your preliminary view on the client's ability to continue as a going concern? What is...
-
For each chemical reaction listed in the table below, decide whether the highlighted atom is being oxidized or reduced. reaction highlighted atom is being... neither oxidized reduced oxidized nor...
Study smarter with the SolutionInn App