Question 1 The Movie class includes a toString method. Suppose another class is using the Movie class and has declared m as a Movie and initialized m. Which TWO of the following would use the toString method correctly to print out information about the movie m? 1 point 1 System.out.println(m); 1 System.out.println(toString()); 1 System.out.println(m.toString); 1

Answers

Answer 1

The two print statement which would use the toString method correctly to print out information about the movie m are:

System.out.println(toString()); 1.System.out.println(m.toString()); 1.

What is a method?

In Computer programming, a method can be defined as a block of executable code (sets of instruction) that are written and used by programmers to break down a given problem into small but manageable fragments (pieces).

This ultimately implies that, methods are typically written and used by programmers to break down any complex problem into simple and manageable fragments (pieces) such as in modern programming languages, which comprises several predefined methods.

In conclusion, the "System.out.println(toString());1" and "System.out.println(m.toString()); 1" calls the toString() function which then returns the string representation of the object movie.

Read more on print methods here: https://brainly.com/question/19594241

#SPJ1


Related Questions

difference between iso 27002 and nist 800-53

Answers

The 20 families of NIST 800-53 rev5 security controls (ISO went from fourteen (14) chapters in 2013 to three (3) sections in 2022).

What Is NIST CSF?

An optional collection of suggestions for managing and lowering cybersecurity risks are published by the National Institute of Standards and Technology (NIST).

The difference between iso 27002 and NIST 800-53

ISO 27002 is effectively a subclass of NIST 800-53, with its cybersecurity controls falling under the twenty (20) families of NIST 800-53 rev5 security controls (ISO went from fourteen (14) chapters in 2013 to three (3) sections in 2022).

Thus, the 20 families of NIST 800-53 rev5 security controls (ISO went from fourteen (14) chapters in 2013 to three (3) sections in 2022).

Learn more about the NIST CSF here:

https://brainly.com/question/15682090

#SPJ1

Give Seven characteristics of a candidate key.

Answers

Answer: A candidate key is a key selected from the set of super keys.

Generally, a candidate key does not have null or empty values and consists of one or many attributes.

According to the above-mentioned student table, the id and phone do not have any redundant attributes.

A candidate key does not have null or empty values and consists of one or many attributes.

There can be more than one candidate keys for a table.

A candidate does not have any redundant attributes.

A candidate key is a super key with no redundant attributes.

Explanation:I hope this helps

(problem is given by the image)

Answers

The program that prompts the user for three integers and displays their average as a floating point is given below:

The Code:

import java.util.Scanner;

public class ArithmeticSmallestLargest {

   public static void main(String[] args) {

       Scanner input = new Scanner(System.in);

       int num1;

       int num2;

       int num3;

       int sum;

       int average;

       int product;

       int largest;

       int smallest;

       System.out.print("Enter First Integer: ");

       num1 = input.nextInt();

       System.out.print("Enter Second Integer: ");

       num2 = input.nextInt();

       System.out.print("Enter Third Integer: ");

       num3 = input.nextInt();

       sum = num1 + num2 + num3;

       average = sum / 3;

       product = num1 * num2 * num3;

       largest = num1;

       smallest = num1;

       if(num2 > largest)

           largest = num2;

       if(num3 > largest)

           largest = num3;

       if(num2 < smallest)

           smallest = num2;

       if (num3 < smallest)

           smallest = num3;

       System.out.println("The sum is " + sum);

       System.out.println("The average is " + average);

       System.out.println("The product is " + product);

       System.out.println("Largest of three integers is " + largest + " and the smallest is "+ smallest + ".");

   }

}

Read more about java programming here:

https://brainly.com/question/18554491

#SPJ1

Knowledge Check
Question 1 of 5

What is an unexpected life event?

Answers

Events that take individuals by surprise as they do not know that they are going to happen, they are unplanned.


Which is the best defense against ESD?
< Prev
Stand-off on motherboard
ZIF socket
Ground strap

Answers

The best defense against ESD is known to be called Ground strap.

What does grounding strap mean?

The ground strap is known to be a term that connote the grounding connection that tends to runs from a vehicle's engine to the area of  the negative battery terminal or that of the chassis.

Note that in the case above, both the negative battery terminal as well as the chassis of a said vehicle are known to be grounded.

Therefore, based on the above, one can say that the best defense against ESD is known to be called Ground strap.

Learn more about Ground strap from

https://brainly.com/question/14989495

#SPJ1

1. The type of browser that allows you to access audio and video content is known as A). Graphic based browser B) Graphic browser Text browser based browser Text​

Answers

The type of browser that allows you to access audio and video content is known as  Text browser.

What is web browser in HTML?

The web browser is known to be a kind of an application software that is made to look through www (World Wide Web).

It is one that helps to give an interface between the server as well as the client and often make  requests to the server for web documents.

Therefore, The type of browser that allows you to access audio and video content is known as  Text browser.

Learn more about Web Browser? from

https://brainly.com/question/22650550
#SPJ1

Carla wants to learn more about how CPUs work. Which of these videos would be the MOST useful to her?
(1 point)
O "How Input Devices Work™
O "Storage Devices for Beginners"
O "Computer Output Devices 101"
O "Introduction to Computer Processing"

Answers

Answer:

it works with atoms

batteries

keyboard

photosynthesis means​

Answers

Answer:

the process by which green plants and some other organisms use sunlight to synthesize foods from carbon dioxide and water.

Explanation:

While troubleshooting a problem, you realize the problem is caused by a complex series of issues that will affect a large number of users even to test your theory as to the cause, and that process won’t even solve the problem. What should you do next in the troubleshooting process?

Answers

The things that you should  do next in the troubleshooting process are:

Set up a plan of action to handle or resolve the problem and then you need to implement the solution.Lastly you have to verify full system functionality and, if applicable, do implement any kind of preventive measures.

What is the troubleshooting theory?

In regards to the issue above, one need to set up a theory of probable cause and then they need to Test the theory to know the cause and when one has find the main cause of the problem, one need to follow the sets above.

The term troubleshooting in a computer is known to be a term that connote a systematic method of  problem-solving that is said to be used a lot to be able to ascertain and correct issues with complex machines, electronics, computers as well as software systems.

Therefore, The things that you should  do next in the troubleshooting process are:

Set up a plan of action to handle or resolve the problem and then you need to implement the solution.Lastly you have to verify full system functionality and, if applicable, do implement any kind of preventive measures.

Learn more about troubleshooting  from

https://brainly.com/question/14394407
#SPJ1

What is Another name for a digital artist
A programmer

b graphic designer

c project manager

d Manager​

Answers

Answer: B. Graphic designer

Explanation:

Programmers work with code, Project managers are in charge of planning and organizing different projects for people to do, and Managers manage staff workers.

Graphic designers primarily work on photo editing, video editing, designing logos for brands, etc.

OBJP4 Self-Check 1.2: binary1
Language/Type:
Author:
Java basics binary numbers
Marty Stepp (on 2016/09/08)
Convert each of the following decimal numbers into its equivalent binary number:
6
44
72
131

Answers

Answer:

6 = 0110

44 = 101100

72 = 1001000

131 = 10000011

Explanation:

You can use the windows calculator in programmer mode to make this conversion easily.

If you want to do it by hand, here's one way to do it.

1. Write from right to left.

2. If your number is even, write down a 0.

3. If your number is odd, write down a 1 and subtract 1 from it.

4. Divide your number by 2.

5. If number not 0, go to step 2.

The reason that many of the innovations of the twenty-first century is coming to pass is the result of
O more computer scientists.
O better computer components.
O quantum computers.
O better operating systems.

Answers

The reason that many of the innovations of the twenty-first century is coming to pass is the result of better operating systems.

Why did technology advance so fast in the 21st century?

The use of Technology as well as Technological evolution is one that has increase a lot exponentially.

This is due to the fact that each generation of technology is one that often makes better  over the last, the rate of progress is one that is different from version to version and it is one that do speeds up.

Therefore,  a better operating system tends to make innovation to be more faster and so. the reason that many of the innovations of the twenty-first century is coming to pass is the result of better operating systems.

Hence, option d is correct.

Learn more about operating systems from

https://brainly.com/question/22811693
#SPJ1

Which of the following are types of containers that can be used in Windows Server 2016?

Answers

Answer:

Windows Server Container and Hyper-V Container. They differ mainly in the degree of isolation they provide. Windows Server Container uses process and namespace isolation technology to isolate applications.

Explanation:

window server 2016 support two types of container nearly

In order to paint a wall that has a number of windows, we want to know its area. Each window has a size of 2 ft by 3 ft. Write a program that reads the width and height of the wall and the number of windows, using the following prompts.

Wall width:
Wall height:
Number of windows:

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that write a program that reads the width and height of the wall and the number of windows, using the following prompts

Writting the code:

import java.util.Scanner;

public class WallArea {

   public static void main(String[] args) {

       Scanner sc = new Scanner(System.in);

       final int areaOfWindows = 6;

       System.out.print("Wall width: ");

       double width = sc.nextDouble();

       System.out.print("Wall height: ");

       double height = sc.nextDouble();

       System.out.print("Number of windows: ");

       double numberOfWindows = sc.nextDouble();

       double area = (width * height) - (numberOfWindows * areaOfWindows);

       System.out.println("Area: " + area);

   }

}

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

#SPJ1

What do packets and networks mean?

Answers

Answer:

A network packet is a small amount of data sent over Transmission Control Protocol/Internet Protocol (TCP/IP) networks. A packet is the unit of data routed between an origin and a destination on the internet or other packet-switched network — or networks that ship data around in small packets.

Explanation:

Please consider me for brainliest, because I'm trying to move up in rank!

Answer:

network is inernet

Explanation:

GIVE THE FOLLOWING:

1. Research three iconic or famous personalities in the field of business who have been featured in print, broadcast, and new media.

2. Compare and contrast how they are presented in each media type.

3. Point out various ways on how the different types of media helped them empower themselves in the field they have chosen.​

Answers

Answer:

ohhh i know it

Explanation:

yes i know

yeah

what is window vista

Answers

Answer:

Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, which was released five years before, at the time being the longest time span between successive releases of Microsoft Windows desktop operating systems. Development was completed on November 8, 2006, and over the following three months, it was released in stages to computer hardware and software manufacturers, business customers and retail channels. On January 30, 2007, it was released internationally and was made available for purchase and download from the Windows Marketplace; it is the first release of Windows to be made available through a digital distribution platform.

Explanations

you can write half because it is long

Explain how would you label each part of the computer?​

Answers

Answer:

Explanation:

you can simply label computer each part by showing the marking on them using numbers and writing below like 1. for CPU

Which of the following statements is an example of the Measurable requirement of SMART goals?

a.
I want to graduate.

b.
I want to graduate with a GPA of 3.0 or higher.

c.
I want to graduate with good grades.

d.
I want to graduate someday.

Answers

The answer is B, because smart in smart goal is specific, measurable, achievable, relevant, and time bound.

I computer use binary, octal, and decimal number system true or false

Answers

Answer: No/False

Explanation: Computers are designed to work in binary, which converts hexadecimel numbers into binary, which is 0's and 1's, to then run the functions of a computer. Octal is a programming language used by early IBM. And the decimal number system doesnt really apply seeing as binary already does those equations easily.

20. Electricians will sometimes call
"disconnects" or a "disconnecting means."
A) O Three-pronged plugs
B) O Switches
c)O Electrical cords
D) C Two-pronged plugs

Answers

Electricians will sometimes call "disconnects" or a "disconnecting meaning option B)  Switches.

What exactly do electricians do?

An Electricians are  known to be people who are responsible for the work of repairing, installing as well as  maintaining control systems, lighting, communications, and others.

Note that Electricians will sometimes call the term "disconnects" to a person to off the  Switches.

Hence, Electricians will sometimes call "disconnects" or a "disconnecting meaning option B)  Switches.

Learn more about Electricians  from

https://brainly.com/question/24786034

#SPJ1

Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2 × radius) Circumference (diameter × π) Surface area (4 × π × radius2) Volume (4/3 × π × radius3) For convenience, the program can import the math module. Below is an example of the program input and output: Radius = 5 Diameter : 10.0 Circumference: 31.41592653589793 Surface area : 314.1592653589793 Volume : 523.5987755982989

Answers

A program that takes the radius of a sphere (a floating-point number) as input and then outputs the parameter of the spheres is given below:

The Code

from math import pi

r = radius

radius = int(input("Radius = "))

print (float("Diameter : " + int(input(float(2 * radius))))

radius = int(input("Radius = "))

diameter = <...calculate diameter...>

print('Diameter =', diameter)

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Can any one make her/his own 5 E-learning questions related to any subject. Plss don't copy from any website.​

Answers

Answer:

Your pupils will be totally engaged in learning if you use the 5E Approach while creating lesson plans. Your children will be inspired to share their learning with others and study ideas, concepts, and tactics together if you follow the 5 stages of engage, explore, explain, elaborate, and assess.

Explanation:

in my own words

Does the source MAC address match your PC interface?

Answers

Answer: Yes, it does

Explanation:

You can use the Cut and Paste commands to move files from one location to another.
er:
a O True
b O False

Answers

Answer:

true

Explanation:

A designer creates a mockup of a website homepage for a youth services nonprofit. They incorporate elements that add hierarchy to the design, make text easy to read, and add visual style. What visual design element are they using?

Typography

Iconography

Layouts

Symbology

Answers

Since the designer creates a mockup of a website homepage for a youth services nonprofit, the visual design element that they using is known to be called  Layouts.

What in web design is a mockup?

An application or web page mockup is seen as a kind of a  static design that includes a lot  of the final design elements but is said to be not functional.

Note that A mockup often contains some placeholder data and is less polished than a live page. It is found to be helpful to break down each element of the definition.

Through the use of  website mockup can help you realize your vision and decide on design concepts before developers begin to work. A sketch is the first step in the web design process before moving on to a wireframe.

Therefore, Since the designer creates a mockup of a website homepage for a youth services nonprofit, the visual design element that they using is known to be called  Layouts.

Learn more about visual design element from

https://brainly.com/question/19584310
#SPJ1

write a complete program that declares an integer variable, reads a value from the keyboard in that variable, and write to standard output a single line containing the square of the variable's value.

Answers

Using the knowledge in computational language in C++ it is possible to write a code that complete program that declares an integer variable, reads a value from the keyboard in that variable.

Writting the code:

#include<iostream>

using namespace std;

int main()

{

//declare an integer variable

int n;

//read a value from the keyboard

//cout << "Enter an integer: ";

cin >> n;

//display the square of the variables value

//cout << "The square of the number entered is: ";

cout << n * n;

return 0;

}

See more about C++ code at brainly.com/question/19705654

#SPJ1

What
are the
Contituent of a c p u

Answers

It consists of an arithmetic and logic unit (ALU), a control unit, and various registers. The CPU is often simply referred to as the processor. The ALU performs arithmetic operations, logic operations, and related operations, according to the program instructions.

what is a mesh topology? Why is it not used commonly?​

Answers

what is a mesh topology?

Why is it not used commonly?

_____________________________________________

QUESTION:

WHAT IS A MESH TOPOLOGY?

A mesh topology is a network set-up where each computer and network device is interconnected with one another.This topology set-up allows for most transmissions to be distributed even of one of the connections goes down.lt is a topology commonly used for wireless networks.

WHY IS IT NOT USED COMKONLY?

Because of the sidnificant cost and work involved in having network components directly connected to every other component.

__________________________________________

[tex] \qquad \qquad \qquad \qquad \qquad \large \color{pink}{ \mathrm{09 / \: 07/\: 22}}[/tex]

Mesh topology is a type of topology in which nodes are interconnected to each other where signalscan transfer to any node at any time within a network.

Due to its cost expensive and difficult to troubleshoot,it is not used commonly.

what's drawing toolbar​

Answers

Answer:

The drawing toolbar, a feature in Microsoft Word, is a collection of many tools to draw and colour shapes, add text effects, create text boxes, and add graphics with colours within a Word document. In addition, users could choose from pre-drawn shapes, add clip art or draw shapes as desired.

Other Questions
Marie smokes cigarettes and bites her nails. according to sigmund freud, she may unconsciously be stuck in the:_____stage. Two individuals signed a contract that was intended to be their entire agreement. the parol evidence rule will prevent the admission of evidence offered to? what is *kaluluwa ng kultura* Mr. Shepherd has gone outside to shovel snow on a cold day. How does his body maintain a relatively constant body temperature? What is this process called? number of gram in p gram? if slim were an animal what would he be (of mice and men) 2. y varies directly as the square root of x, and y = 12, when x = 49. Find the value of y when x = 225. 3. R is inversely proportional to the cube of S and R = 8 when S = 3. Find the value of R when S=6. 4. n varies directly as the square root of t and inversely as l. If n = 5 when t = 16 and 1 = 2, find t when n = 10 and 1 = 3. In each equation below, the letter x stands for an unknnumber x stands for. Write down exactly how you do it1.X/5=7 Who forced King John to sign the Magna Carta?A. Monks in English monasteriesOB. English noblesOC. English peasantsO D. A group of French knights A 16-foot piece of string is cut into two pieces so that the longer piece is 1 foot longer than twice the shorter piece. Find the lengths of both pieces.Question content area bottomPart 1What is the length of the shorter piece?What is the length of the longer piece? Which type of ventilation relies on doors and windows on the same level as the fire? Generally speaking, any transaction that results in a receipt from foreigners _________. An approach to analyzing the life cycle of an item, beginning with the raw materials from which it is made to its ultimate disposal, is called the:________ To what extent did Wilsons war make the world, or the United States, safe for democracy going forward in the 1920s and 1930s? How is Catherine characterised as a quintessential Suffragette? The inside of the barrel-shaped ldl protein consists of ___________ amino acids, while its outside portions in contact with the blood fluid consist of _____________ amino acids. How and why have humans modified the ecosystem in the everglades? what have the intended and unintended consequences been? Margo spends $10,000 on one year's college tuition. the opportunity cost of spending one year in college for margo is:_____. What uses upward- and downward-pointing arrows that let you move through a set of values by clicking? What is function/purpose of RNA