Write three different ways to declare and instantiate a String object called “myString” and containing “abc”


For the Eclipse Java IDE

Answers

Answer 1

The ways in which one can declare and instantiate a String object called “myString” and containing “abc” are given below.

What is a String Object in Programming?

A string is a predefined class that is provided by so many programming languages, including C, C++, Java, Erlang, etc.

A string is a collection of characters that include spaces. It can be described as a one-dimensional array of characters terminated by the NULL character ('0').

The ways in which one can decalre and instantiate a string object defined above are:

A) String myString = "abc";

B) String myString = new String("abc");

C) char temp myString =  char temp ("abc");

Learn more about String Objects at;
https://brainly.com/question/14743310
#SPJ1


Related Questions

A network packet contains two kinds of information. what are they?

geolocation data and user data

control information and user password

control information and user data

geolocation data and user password

Answers

Answer:

C) control information and user data

Hope this helped you, and have a good day!

Assume that it takes 0. 01 milliseconds to access a disk block if the block is in the disk cache (i. E, in main memory) and 20 milliseconds if the block is on the disk. Assume that 3 level(s) of indexing is used and the cache hit ratio is 88%. What is the effective (average) disk access time in milliseconds (rounded to zero decimal places)

Answers

GATE | GATE-CS-2015 (Set 1) | Question 65. Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors

You are an administrator of a growing network. You notice the network you have created is broadcasting, but you cannot ping systems on different segments of your network. What device should you use to fix this issue

Answers

Answer:

Network bridge

Explanation:

You are an administrator of a growing network. You notice the network you have created is broadcasting but you cannot ping systems on different segments of your network. What device should you use to fix this issue?

✓ Network bridge

6.1.4 Guess a Number 2.0

Answers

There are different ways of coding, An example of 6.1.4 Guess a Number 2.0 is given in the space below

What is the 6.1.4 Guess a Number 2.0 about?

speed(0)

pensize(10)

def green_check():

penup()

setposition(0,0)

color("green")

backward(25)

right(45)

pendown()

forward(35)

left(90)

forward(75)

def higher():

penup()

setposition(0,0)

pendown()

left(90)

forward(100)

right(145)

forward(50)

right(180)

forward(50)

left(105)

forward(50)

def lower():

penup()

setposition(0,0)

pendown()

right(90)

forward(100)

left(145)

forward(50)

left(180)

forward(50)

right(105)

forward(50)

user_number = int(input("Guess a number 1 through 10? "))

secret_number = 6

if user_number < secret_number:

higher()

user_number = int(input("Guess a number 1 through 10? "))

elif user_number == secret_number:

green_check()

else:

lower()

user_number = int(input("Guess a number 1 through 10? "))

Learn more about code from

https://brainly.com/question/4514135

#SPJ1

Why is it necessary that Computer 1 run Windows Professional or a higher edition to implement the security used in this lab

Answers

Computer 1 includes a number of defensive measures, including identity protection, threat resistance, and information protection, to ensure that if one fails, another is ready to counter an damage.

What is defensive measures?

The word "defensive measure" refers to any action, device, procedure, signature, technique, or other measure used to identify, prevent, or neutralize a known threat to an information system or information stored on, processed by, or traversing an information system.

Thus, Computer 1 includes a number of defensive measures.

For more details about defensive measures, click here

https://brainly.com/question/5961251

#SPJ1

need asap!!

one-paragraph response to "The Story of the Animated Drawing" by Walt Disney

class is Principals of AAVTC​

Answers

"The Story of the Animated Drawing" is a television episode from Walt Disney's Disneyland that was aired on November 30, 1955.

What is "The Story of the Animated Drawing" by Walt Disney?

"The Story of the Animated Drawing" is a television episode from Walt Disney's Disneyland that was aired on November 30, 1955.

Walt Disney recounts the evolution of animation through the ages, beginning with prehistoric times and progressing through some early mechanical animation devices in the nineteenth century.

To know more about paragraphs follow

https://brainly.com/question/11600913

#SPJ1

You come across a useful and free reporting utility which can be easily downloaded from the internet to create appealing reports for your project. Will you go ahead and install it?

Answers

When I come across a free reporting utility which can be easily downloaded from the internet I will not download and install it in my computer system.

What is a reporting utility?

A reporting utility is an application that can be used to create reports for projects which can save time for a company.

The disadvantage of downloading a free reporting utility is that it can be a malware in a disguise which when downloaded can cause harm to the data of your company.

Therefore, When I come across a free reporting utility which can be easily downloaded from the internet I will not download and install it in my computer system.

Learn more about malware here:

https://brainly.com/question/23294592

#SPJ1

The following Python statement instructs the program to open a file for input.

inFile = open("grocerydataFinalPY.txt", "w")

A. True
B. False

Answers

The python statement that instructs the program to open a file for input is a false statement.

How to open file for input ?

The code above is a python code.

The python statement to instructs a program to open a file for input can be represented as follows:

The Python function open() is a built-in function that opens a file and allows your program to use it and work with it.

The open functions accepts a file(relative path to the file) and a string or character that indicates what you want to do with the file.

inFile = open("grocerydataFinalPY.txt", "w") is use to open a file and write on it.

learn more on python here: https://brainly.com/question/13696872

#SPJ1

Is designed to access a computer or operating system without the knowledge or permission of the user.

Answers

Answer:

Spyware

Explanation:

Spyware is a type of program that is installed with or without your permission on your personal computers to collect information about users, their computer or browsing habits tracks each and everything that you do without your knowledge and send it to remote user.

When you program in Scratch, what are two things you can do with a sprite?
A. Drag it to the scripts area
B. Add it to another variable
C. Change the costume on it
D. Make it move
SUBM

Answers

Explanation:

You can change the costume and drag it to the script area

You can change the costume and drag it to the script area.

What is Script area?

Visual programming is used in Scratch to make your own games, tales, and animations. A script is a group of instructions used to program in Scratch. It is a group of interconnected blocks stacked on top of one another.

As users choose to engage with sprites, the blocks of instructions are thoughtfully arranged to carry out a certain purpose. It's a good idea to include script comments that explain what is happening.

A sprite in Scratch is an actor, the main character of the program, or a graphic component that carries out all the tasks specified in the script.

Therefore, You can change the costume and drag it to the script area.

To learn more about Script area, refer to the link:

https://brainly.com/question/6975460

#SPJ7

help please will give brainliest!!!!!!!!!

Answers

Answer:

Take a String.

Convert it into array of characters.

Apply for loop till length of char array.

Using isDigit() method we can check the digits in string.

If isDigit() will return true then print that index value.

That digit is in char form. ...

Using sum variable, we will sum it.

Explanation:

A series of drawn pictures (like a comic) of key visual shots of planned production for video is a/an
A encoding
B.call sheet
C.shot list
D. storyboard o IN​

Answers

Answer:

The correct answer is D) Storyboard

Explanation:

A storyboard is used during the initial planning stage of filmmaking. You draw pictures to demonstrate the general idea of what shots you want to get before actually going out and filming on a set/studio.

(4, a) and (2, 5) are two points from a direct variation. What is a? Use the step-by-step process you just learned to solve this problem. Step 1: Set up the correct type of variation equation. y =

Answers

The value of a for point (4,a) in the direct variation is 10.

What is a direct variation?

The direct variation in mathematics is given as the equation relationship between the two numbers, where one is a constant multiple.

In the given problem, the variation equation is given as:

[tex]y=kx[/tex]

Where k is a constant.

The value of k can be derived from point (2,5):

[tex]5=k2\\\\k=\dfrac{5}{2}\\\\ k=2.5[/tex]

Substituting the values of k for the point (4,a):

[tex]a=2.5\;\times\;4\\a=10[/tex]

The value of a for point (4,a) in the direct variation is 10.

Learn more about direct variation, here:

https://brainly.com/question/14254277

#SPJ1


Treating others with respect, even when they're impolite, is considered
A. good netiquette
B. being a bystander
C. advocating
D. empathy

Answers

The answer for this question is A

Treating others with respect, even when they're impolite, is considered good netiquette. The correct option is A.

What is netiquette?

Netiquette refers to the standards of behavior for polite and appropriate online conversation. Etiquette for the internet is another name for netiquette. These are suggested politeness guidelines rather than laws.

A set of guidelines known as netiquette promotes polite and appropriate online conduct.

These guidelines are crucial because they encourage effective communication, guard against misunderstandings, and show you what is appropriate in social situations when working and cooperating online.

Online communication can be made more productive with the use of netiquette, which also helps people stay clear of confusion and potential confrontation. It is considered acceptable to treat people with respect, even when they are being rude.

Thus, the correct option is A.

For more details regarding good netiquette, visit:

https://brainly.com/question/29444693

#SPJ2

how has technology impacted the individual and the society​

Answers

Answer:It affects the life of people and changes the way of their learning, thinking, and communication.

Explanation: mark me as the brainly-est to get the best answers

Explain why it is wise to memorize your social security number.

Answers

It is memorize your social security number as one can be able to recur it for any given purpose if one did not carry it along with them.

Why memorize your social security number?

The reason why it is important to memorize your social security number is that by doing so, one do not need to carry or use their card again.

Conclusively, Note that It is not the card but the number that is very important and as such it is vital that one knows their Social Security number that is the nine digits number off heart and in cases of emergencies when one forgot to carry their cards.

Learn more about social security number from

https://brainly.com/question/5213237

#SPJ4

What are the advantages to star topology?



Select All that Apply.




A. It is easy to troubleshoot problems.



B. Each node is connected to all other nodes.



C. It is less expensive than bus technology.



D. Nodes can be added without disrupting the network.



E. The malfunction of one workstation doesn't crash the network

Answers

The  advantage to star topology is that It is less expensive than bus technology.

What are advantages of star topology?

The Advantages of Star Topology is that it is a little bit expensive when compared to others.

Note that base on the fact that  each device only need one I/O port and may want to be linked with hub with one link, it is therefore easy or less expensive than bus technology.  There is also easy fault detection here.

Learn more about star topology rom

https://brainly.com/question/22872621

#SPJ1

The box on a slide that has a dotted or hatch-marked border and that contains the insertion point is a text ____.

Answers

it is known as a text placeholder

Placeholder is the answer

Write code to assign x and y coordinates to currCoordinate, and store currCoordinate in criticalPoints. Input first receives an x value, then a y value. Input example: 12 32 88 2 -1 -1

Answers

Using the knowledge of the python computational language, it will be possible to write a coordinate code, like this:

Writing coordinate code in python:

    def __init__(self, x, y):

        self.x = x

        self.y = y

    def getX(self):

     directly

       return self.x

   def getY(self):

     return self.y

  def __str__(self):

       return '<' + str(self.getX()) + ',' + str(self.getY()) + '>'

class Coordinate(object):

   def __init__(self,x,y):

       self.x = x

       self.y = y

   def getX(self):

      return self.x

   def getY(self):

       return self.y

   def __str__(self):

       return '<' + str(self.getX()) + ',' + str(self.getY()) + '>'

     def __eq__(self, other):            

       if other.x == self.x and other.y == self.y:

           return True

       else:

           return False

   def __repr__(self):

       return "Coordinate"+ str((self.x, self.y))

See more about python at brainly.com/question/13437928

#SPJ1

The following assignment statement instructs the computer to initialize a variable with int data type.

howMany = 0

A. True
B. False

Answers

The given assignment statement instructs the computer to initialize a variable with int data type: True.

The kinds of data type.

In Computer programming, there are five (5) common data types and these include:

Integer type (int)Floating point type (float)Boolean (bool)String (str)Integer type (int)

Basically, an integer type (int) is used for storing whole numbers such as 0, 1, 2, 3, 4, etc. Thus, the assignment statement "howMany = 0" would instruct the computer to initialize a variable with int data type.

Read more on a data types here: brainly.com/question/25619349

#SPJ1

Who runs the Web? Who controls all these protocols? Who's in charge of all this?

Answers

Answer:

...Multiple people. But the person who created the internet was Vinton Cerf.

The Internet Engineering Task Force (IETF) and the internet society runs the web

Data files whose records are always retrieved in sequence from the beginning of the file are known as

Answers

Answer:

sequential files

Explanation:

Q:

Data files whose records are always retrieved in sequence from the beginning of the file are

A:

sequential files

This is an example of what type of formula?

=(D1-D17)

Question 3 options:

ADDITION


SUBTRACTION


RANGE


AVERAGE

Answers

Answer:

Subtraction

Explanation:

That is subtracting the values of two cells.

You know because of the "-" sign

What is output?
x = 2
y = 3
print (x * y + 2)
4
2
8
10

Answers

Answer:

8

Explanation:

(2*3+2)=8

Hope this helped, and have a good day!

What is the point of comments in code? Discuss at least two possible uses of code, including specific examples of what a comment might “look like.”

Answers

Answer:

Better collabaration and helping find bugs.

Explanation:

When working with a group of people, comments help the other person understand what you are doing.

Ex. //cat sprite

Also, it helps find bugs. For example, if the cat sprite is not working that means you know it has something to do with that peice of code.

why computer is called versatile memory? ​

Answers

Answer:

Versatility: The capacity of the computer of performing more than one task at the same time is called the versatility of a computer. Versatility means the capacity to perform different types of work completely. Storage: The computer has a mass storage section where we can store a large volume of data for future use.

Explanation:

In a PHP application using PDO, a _____ consists of the host, port, and name of the database that will be used to establish a connection to the database.

Answers

The PDO in PHP has data source name that enables the connection of the database.

What is PHP?

PHP is a scripting language and is used for the WebPages and the intersection to the relative database management system.

PDO is the PHP data object and can act as providing a data extraction layer for vendor-neutral lightweight data access.

The connection to the database is managed with the data source name consisting of the host, port, and name of the database.

Learn more about PHP, here:

https://brainly.com/question/14114506

#SPJ1

The do/while loop is generally used when the program loop should run at least once before testing for the stopping condition true false

Answers

Answer:

In the do-while loop, the body of a loop is always executed at least once. After the body is executed, then it checks the condition.

Explanation:

If the condition is true, then it will again execute the body of a loop otherwise control is transferred out of the loop.

____ loses data when it stops receiving electrical power.


ANSWER OPTIONS:
A graphics processing unit (GPU)

A central processing unit (CPU)

Random-access memory (RAM)

Read-only memory (ROM)

Answers

Answer:

gpu

Explanation:

the answer is gpu a graphics processing unit

PLS HURRY 43 POINTS

Digital censorship uses automated, intelligent systems with big data storage to _____. Select 3 options.

surveil people’s digital behavior
promote access to information
manage the internet
limit access to digital information
provide efficient internet searches

Answers

Answer:

surveil people’s digital behavior

promote access to information

provide efficient internet searches

Explanation:

i just know things

Other Questions
Ser vs Estar. Choose ser or estar to best complete the sentence.1. Yo ________ de Albuquerque a. estoy b. soy What is the definition of a chronological structure?A. Describes events in order they occurred or gives ordered instructionsB. Shows relationship between events, explains how one thing happens as a result of anotherC. Describes a topic, idea, person, place or thingD. Describes a problem as well as its causes and suggests solutions Identify reduced, oxidized substance, reducing and oxidizing agents in 3 No+ H0 -> 2HNO3 + No The economy of Rayton can be described by the following statistics:Current real GDP = $10,000Full employment real GDP = $12,000Tax revenue = $3000Government transfer payments = $1000Government spending = $3000a) In what stage of the business cycle is the Rayton economy? Explain. b) What is the current budget balance in Rayton? Show your work. c) Senator Fullington, an influential politician in Rayton, has argued that the budget must bebalanced. How could this be accomplished? How would balancing the budget affect real GDP inRayton? What is AH in the equation AG = AH - TAS Changes in the american labor force since 1970 reveal all of the following except a. A rise in minority workers. B. That women make up 47 percent of the labor force. C. 90 percent of the labor force aged 2564 has graduated from high school. D. Over one half of the labor force has a college degree Work out, giving your answer in its simplest form You are on the team of executives at Star Bank. You have been meeting as a team to discussthe future of the bank, including big picture goals of how to grow the company. What type ofplanning is this? picture of problem below HELP PLEASE ILL GIVE THE BRAINLEST THING IF U DO QUICK don't spam!! complete answe= Brainliest answer 100 POINTS AND BRAINLIEST I NEED THIS TODAY!!!!!I need a 3 Paragraph Literary essay about RALPH's CHARACTER FROM LORD OF THE FLIES.This is extremely important! Don't worry about grammar or spelling, I can fix that, I just need this, and normally I don't do this, but it's an emergency!! PLEASE HELP ME FIND THE AREA AND CIRCUMFERENCE Please Help! The amount of money in an account may increase due to rising stock prices and decrease due to falling stock prices. Emerson is studying the change in the amount of money in two accounts, A and B, over time. The amount f(x), in dollars, in account A after x years is represented by the function below: f(x) = 1,264(1.09)xPart A: Is the amount of money in account A increasing or decreasing and by what percentage per year? Justify your answer.Part B: The table below shows the amount g(r), in dollars, of money in account B after r years.r (number of years):1234 g(r) (amount in dollars):1,3751,512.501,663.751,830.13Which account recorded a greater percentage change in amount of money over the previous year? Justify your answer. Find the equation of the tangent line to the curve y= The volume inside a rectangular storage room is 2,070 cubic feet. The room is 9 feet high. Find the area of the floor. can someone help me here NONSENSE=REPORT topic: Inscribed Quadrilateral theorem in a Circle Find the new dimensions of the figure given at right when it is enlarged by scale factor of 2.5 then find the perimeter and area of the original and enlarge it figure What errors need to be corrected on this works cited page? check all that apply. the page title should not be bolded and underlined. the first entry needs the authors name. the second entry needs a hanging indent. the last entry needs to have a date accessed. the citations should be in alphabetical order. Who was the 30th president of the United States