50 points and brainlist Assume the String objects x and y are initialized as shown below. What is the value of the expression word1.compareTo(word2)?

String word1 = "stay";
String word2 = "strong";

−1
0
1
A negative integer
A positive integer

Answers

Answer 1

Using the knowledge of computational language in JAVA it is possible to write a code that assume the String objects x and y are initialized as shown below.

Writting the code:

//TestCode.java

public class TestCode {

   public static void main(String[] args) {

       String word1 = "stay";

       String word2 = "strong";

       System.out.println(word1.compareTo(word2));

   }

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

50 Points And Brainlist Assume The String Objects X And Y Are Initialized As Shown Below. What Is The

Related Questions

Your science teacher gives you plastic
wire, copper wire, rubber tape and tin
foil. How would you design an
electrical wire using at least two of these materials?

Answers

You should wrap the rubber tape, which is an insulator, around the cooper wire, which is a conductor, to design an electrical wire.

The components of an electrical circuit.

Generally, an electrical circuit comprises the following electrical components:

ResistorsCapacitorsBatteriesTransistorsSwitchesElectrical wires

What is a design brief?

A design brief can be defined as a short statement which is written to describe the need of an individual or business, and what type of solution will meet that need (problem) through the design of an electrical circuit.

In this scenario, you should choose a rubber tape and the cooper wire from the materials provided by your teacher. Then, wrap the rubber tape, which is an insulator, around the cooper wire, which is a conductor, to design an electrical wire.

Read more on cooper wire here: https://brainly.com/question/24856041

#SPJ1

You've made changes to document and need to save as pdf..how do you do this?

Answers

Answer:

file and download the freshly edited doc and download it/export as a pdf

Emma Jackson is thinking of starting a retail business with two friends who have extensive experience in sales and business organization. They want to determine whether they should run the business as an e-commerce website or a brick-and-mortar store. Research the pros and cons of e-commerce for businesses and recommend an option to Emma.

Answers

The E-commerce business has both benefits and weaknesses. It has benefits as it saves the consumer time whereas weaknesses as it does not provide the product's physical appearance.

What is Business?

An economic activity that involves the exchange of goods and services with the help of buying and selling with the objective of gaining some profit is called Business.

The advantage of an E-commerce business does not require a high financial cost to start a business. It helps consumers to access the products in one click by providing varieties. These can also provide a personalized experience to customers.

The disadvantage of an E-commerce business is technological crash. When there is more traffic on ECommerce sites the technology may crash. In this type of business, there is a lack of physical touch so the customers found it difficult to trust the product.

Based on the above information, ECommerce business is recommended by providing additional features like exchange features on products to gain the customer's trust and make them feel satisfied and eliminate the factor like fraud.

Learn more about E-commerce, here:

https://brainly.com/question/14157556

#SPJ1

4) Computer viruses can be spread by
sharing flash drives.
O downloading and running a file attached to an email.
O downloading a song from a peer-to-peer sharing site.
O all of the above

Answers

Answer:

All of the above

Explanation:

Flash drives may be stored with viruses, A file from an email might not be reputable, and Peer to Peer sights are risky and a virus can be disguised as a song. This proves that the answer is all of the above.

Other Questions
50 point help needed Which table represents y as a function of x Between 10 pm and 7:36 am, the water level in a swimming pool decreased by 8/25 in. What is the constant rate Multiple Choice Which of the following is a musician most likely to do to supplement his income?O compose high-school band music O perform for donations on the street O work in retail O give music lessons The I in immigration is just like the I in the word ______? Several wires of varying thickness are all made of the same material and all have the same length. If the wires are arranged in order of decreasing thickness, what can be said about the ordering of their resistance?. What is the answer to -27-8x>7(1-6x) People who make money investing in the stock marketget certain tax breaks.should sell quickly to avoid taxes.have to pay a fee to keep a stock.must pay taxes on profits. A _____ is a currency whose value is tied to another currency, meaning that the exchange rate is fixed. Above all Greek art expressed ________ , the glorification of Man as the most important creature in the universe. Garcia industries has sales of $207,500 and accounts receivable of $18,500, and it gives its customers 25 days to pay. The industry average dso is 27 days, based on a 365-day year. If the company changes its credit and collection policy sufficiently to cause its dso to fall to the industry average, and if it earns 8. 0% on any cash freed up by this change, how would that affect its net income, assuming other things are held constant? assume all sales to be on credit. Do not round your intermediate calculations. Beatriz tiene siete tos. True false If the expression for the tiles is 7(b-3)+8, what is the border number if theTOTAL number of tiles is 57? Jim's backyard is a rectangle that is 14 5 6 yards long and 10 2 5 yards wide. Jim buys sod in pieces that are 1 1 3 yards long and 1 1 3 yards wide. How many whole pieces of sod will Jim need to buy to cover his backyard with sod? Jim will need to buy pieces of sod to cover his backyard with sod. volume entering the small intestine: 9,400 ml volume entering the large intestine: 750 ml volume leaving the large intestine: 300 ml what percentage of the water entering the small intestine is absorbed by the small intestine? Which amendment was passed in 1868 and provided for due process of law, equal protection under the law, and respect for the privileges and immunities of all citizens?. The shop got three kinds of fruit for sale. Apple, pear and peach. 40% of them are apples, 36% are pears, and 72 kg are peaches. How many kilograms of apples and pears did the store receive? Welfare effects of trade creation and trade diversion as determined by empirical studies Read the excerpt from Silent Spring.The roadsides, once so attractive, were now lined with browned and withered vegetation as though swept by fire l. In this excerpt, which phrase best shows the authors tone of despair? Help please! Will give extra points, MUST BE CORRECT, you can get a FEW wrong, at least 3. Giving Brainliest. How many atoms are in 2.4 g of uranium?