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
fenix001 [56]
3 years ago
8

If x is a string, then x = new String("OH"); and x = "OH"; will accomplish the same thing. Group of answer choices True False

Chemistry
2 answers:
Vinvika [58]3 years ago
5 0

Answer:

True is the correct answer to the above question.

Explanation:

  • If x is a string then it can be assigned by the help of two ways in java:
  • By the help of constructor:- When we write " x = new String("OH");", then it will create a pass a string "OH" into the constructor. It is because the String is a class in java and x is an object created by the constructor of the String class.
  • With the help of assigning: The "x= OH", which assigns the value of x which is an object of String class it can also use the constructor to initialize the "OH" string on the class.
  • The above question states the two scenarios which are defined above. Hence the question statement is true.
Akimi4 [234]3 years ago
5 0

Answer:

"True" is the correct answer to this question.

Explanation:

The program to the given question as follows:

Program:

public class data //defining class

{

  public static void main (String [] aw)//defining the main method

  {

String x="OH"; //defining string variable x and assign value

System.out.println("assign value: "+x); //print value

x = new String("OH"); //defining instance variable and assign value

System.out.println("assign value by creating instance: "+x); //print value

  }

}

Output:

assign value: OH

assign value by creating instance: OH

Explanation of the program:

In the above java program, a class data is defined, inside the class the main method is declared, In this main method a string variable "x" is defined that holds a value "OH", then we the print function to print this variable value.

In the next line, An instance of variable x is created, which holds a value "OH" in its parameter. In this question, both are correct because both hold the same value.

You might be interested in
Can anyone help me with this?
Bond [772]

Answer:

Label 2

Explanation:

Earth is about 2/3 of the way up the Orion Arm of the Milky Way Galaxy

3 0
2 years ago
Please answer this question for 10 points
Dmitry_Shevchenko [17]
Is A have a nice day good luck b
4 0
3 years ago
Read 2 more answers
The highest energy level of sodium contains ________ electron(s).
Effectus [21]

Answer:

A

Explanation:

The group number of an element is equal to the number of electrons the outermost shell (or highest energy level) contains

8 0
4 years ago
Rate law equation The rate of a chemical reaction depends on the concentrations of the reactants. For the general reaction betwe
shusha [124]

Answer:  The reaction order with respect to A is m

Explanation:

Order of the reaction is defined as the sum of the concentration of terms on which the rate of the reaction actually depends. It is the sum of the exponents of the molar concentration in the rate law expression.

Elementary reactions are defined as the reactions for which the order of the reaction is same as its molecularity and order with respect to each reactant is equal to its stoichiometric coefficient as represented in the balanced chemical reaction.

For the given reaction:

aA+bB\rightleftharpoons cC+dD  

Rate=k[A]^m[B]^n

In this equation, the order with respect to each reactant is not equal to its stoichiometric coefficient which is represented in the balanced chemical reaction.

Hence, this is not considered as an elementary reaction.

Order with respect to A = m

Order with respect to B = n

Overall order = m+n

Thus order with respect to A is m.

3 0
3 years ago
How many electrons in an atom can have each of the following quantum number or sublevel designations?
lutik1710 [3]

Answer: a:6 electrons, b:10electrons, c: 2electrons

Explanation:

1.Principle quantum number(n)

n is the number of shell, it is a positive integer. The maximum number of electrons in a shell is 2(n2)

2.Azimuthal quantum number(l)

l is the number of subshell in the principal shell

The name of subshell are s, p, d, f

The number of nodes in each subshell is

s is l=0, p is l=1, d is l=2, f is l=3.

Each shell can have 2 x l + 1 sublevels, and each sublevel can accommodate maximum of 2 electrons and have two electrons.

A. n=2, l=1 then 2 x 1 + 1= 3 subshell, 3*2= 6 electrons in the p subshell

b. 3d, d is l = 2 then 2 x 2 + 1 = 5 sublevels, 5*2=10 electrons in the d subshell

c. 4s, s is l=0 then 2 x 0 + 1 = 1 sublevel, 1*2=2 electrons in the s subshell.

6 0
3 years ago
Other questions:
  • What’s the relationship between homozygous and pure?
    10·1 answer
  • How many grams of water vapor (H2O) are in a 10.2 liter sample of 0.98 atmosphere and 26 C
    13·1 answer
  • Which of the following would a chemist be most likely to study? A. what happens when a moving car comes to a stop B. what happen
    14·1 answer
  • What particles contribute to the mass of an atom?
    13·2 answers
  • A waterbed filled with water has the dimensions 8.5ft by 7.5ft by 9.5inches. Taking the density of water to be 1.00 g/cubic cent
    5·1 answer
  • PH of a 0.00072 M HCl solution.
    5·1 answer
  • What is the chemical formula for Magnesium and Phosphorus as a compound?
    9·1 answer
  • Is aluminum intensive or extensive
    11·2 answers
  • The initial temperature of a reaction is 24.7 °C. The temperature decreases by 3.2 °C. What is the new temperature of the reacti
    10·1 answer
  • What is oxidation number of S in H2SO5 ???​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!