1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
EastWind [94]
1 year ago
9

a value-returning method must specify as its return type in the method header. question 18 options: a) an int b) a double c) a b

oolean d) any valid data type
Computers and Technology
1 answer:
Olenka [21]1 year ago
5 0

An int must be specified in the method header as the return type for a value-returning method

<h3>What is an int?</h3>

A whole number that can be positive, negative, or zero is called an integer. It is not a fraction. -5, 1, 5, 8, 97, and 3, 043 are some examples of integers. 1.43, 1 3/4, and 3.14 are a few examples of numbers that are not integers.

The compiler includes a fundamental variable type called int, which stands for "integer" and is used to define numeric variables that carry entire integers. Float and double are additional data types.

A basic data type is the Java int keyword. Declaring variables is done using it. Additionally, it can be used with methods that return values of the integer type. It is capable of storing a 32-bit signed, two's complement integer. In the Internet's Domain Name System, the domain name int is a sponsored top-level domain.

To learn more about an int refer to:

brainly.com/question/27415982

#SPJ4

You might be interested in
Consider the following statements. An abstract class is better than an interface when the variables in the abstract class or int
Ksivusya [100]
Well the nonchalant question given for 4th grade red named babyface Justin and Jerome
4 0
2 years ago
Suppose we have a String object called myString. Write a single line of Java code
VikaD [51]

Answer:

myString=myString.toUpperCase();

Explanation:

In java to change all characters of a string to upper case we use .toUpperCase() method.It will convert string to upper case.

Implementation in java.

import java.util.*;

class Solution

{

public static void main (String[] args) throws java.lang.Exception

{

   try{

Scanner scr=new Scanner(System.in);

System.out.print("Enter a string:");

String myString=scr.nextLine();

myString=myString.toUpperCase();

System.out.println("string in upper case : "+myString);

         }catch(Exception ex){

       return;}

}

}

Output:

Enter a string:hello

string in upper case : HELLO

5 0
3 years ago
The the thehhhhhhhhhhhhhhhh
jek_recluse [69]
???????????? What is this about?
5 0
2 years ago
Jolie builds a model of a maglev train. She uses disc magnets to levitate the train. A disc magnet has its north and south poles
DIA [1.3K]
<span> I think it is B. Flat, so that the north pole of the magnets on the train point up and the north poles of the magnets on the track point down</span>
5 0
3 years ago
Read 2 more answers
What does ACCU stand for?
saveliy_v [14]
Association of C and C++ Users (ACCU) is a worldwide association of people who are interested in C, C++, and related programming languages.
3 0
3 years ago
Read 2 more answers
Other questions:
  • DJ wants to see how his document will look when printed. Where would he find the button to see the document in print view? the P
    5·2 answers
  • Write a program that will take an integer and add up each of the number’s digits, count the number of digits in the number, and
    13·2 answers
  • Mass production usually uses an _______________ ____________ or production line technique.
    7·1 answer
  • The ____ category of apps makes the computer easier for blind people to use.
    9·1 answer
  • Controller Area Network CAN B bus diagnostics is being discussed. Technician A says some modules do not set specific codes that
    13·1 answer
  • Which of the following is not an Operating System? (1 point)Windows
    14·1 answer
  • What is the role of the federal government in regulating the media and the internet?
    6·2 answers
  • The purpose of maintaining a network of digital forensics specialists is to develop a list of colleagues who specialize in areas
    7·2 answers
  • Which statements are true? Select 4 options.
    9·1 answer
  • Use the drop-down menus to complete each sentence.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!