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
Novosadov [1.4K]
4 years ago
13

Given 1. class Ex1{ 2. public static void main(String[] args) { 3. int a[] = { 1, 2, 053, 4 }; 4. int b[][] = { { 1, 2, 4 } , {

2, 2, 1 }, { 0, 43, 2 } }; 5. System.out.print( a[3] == b[0][2] ); 6. System.out.print(" " + (a[2]==b[2][1])); 7. } 8. } Which is the result?
Computers and Technology
1 answer:
kirill115 [55]4 years ago
8 0

Answer:

Following will be the output of provided code:

true true

Explanation:

The given Java program is as follows:

1. class Ex1{  

2. public static void main(String[] args) {  

3. int a[] = { 1, 2, 053, 4 };  

4. int b[][] = { { 1, 2, 4 } , { 2, 2, 1 }, { 0, 43, 2 } };  

5. System.out.print( a[3] == b[0][2] );  

6. System.out.print(" " + (a[2]==b[2][1]));  

7. }  

8. }

In the above program line 3 will store array content with values { 1, 2, 053, 4 } from a[0] till a[3].

In line 4 program will store the content { { 1, 2, 4 } , { 2, 2, 1 }, { 0, 43, 2 } } in array elements b[0][0], b[0][1], b[0][2], b[1][0], b[1][1], b[1][2], b[2][0], b[2][1], b[2][2].

In line 5 and 6 respective elements of two array a and b are compared using equal to(==) operator.

In case of line 5, since  a[3] i.e. 4 and b[0][2] i.e. 4 are equal so it will result in true.

Similarly, in line 6, since  a[2] i.e. 43 and b[2][1] i.e. 43 are equal so it will result in true.

Here 053 will be stored as 43 because providing zero before a number will make it in octal base and thus decimal value of 053 will be 5\times8^{1}+3\times 8^{0} = 43.

You might be interested in
What is authentication?
Savatey [412]

Answer:

C

Explanation:

I believe that's the answer if it's not sorry

8 0
3 years ago
Help please brainliest
V125BC [204]

Number one is x-axis.

3 0
3 years ago
2. You can ___ adjust to NOT sleeping at night.
zhannawk [14.2K]

Answer:

whats the answer chooses

Explanation:

7 0
3 years ago
What would a world where we have 2^128 (340 undecillion) Internet connected devices look like? How could that much Internet usag
cluponka [151]

A world  have 2^128 (340 undecillion) of IPv addresses that helps to connect to the internet. IPv6 addresses can make it easier for working organizational teams connecting to the Internet, IP addresses that are created by IPv6 are 128 bits.

<h3>What is internet?</h3>

Internet is the system  uses the Internet protocol suite (TCP/IP)  and interconnected computer networks that communicate between two or more individuals.

Today, almost 20 IP addresses are taken by7 each home for each electronic device. The internet usage is so wide, that even a simple task  is not possible without it. Even a simple task can be done using internet.

Learn more about internet.

brainly.com/question/13308791

#SPJ1

5 0
2 years ago
The banner on the front page of a newsletter that identifies the publication is the:.
podryga [215]

Answer:

Nameplate

Explanation:

The banner on the front of a newsletter that identifies the publication is its nameplate.

7 0
2 years ago
Other questions:
  • What is the highest education degree available at a community college
    14·1 answer
  • The process of using a computer to write, design, and assemble documents is called A. desktop publishing. B. scanning. C. consul
    7·1 answer
  • HURRY
    5·1 answer
  • Complete the following statements by choosing the correct answer from the drop-down menus.
    14·1 answer
  • One example of a Microsoft Store app is Select one: a. Photos. b. Paint. c. File Explorer. d. Notepad.
    10·1 answer
  • Refer to the following statement: “We have implemented several IT solutions:
    14·1 answer
  • Create a list with 5 numbers and find the smallest and largest number in the list and also the sum and product of the numbers in
    9·1 answer
  • F. Practical Questions
    7·1 answer
  • Which types of file formats are the best choice for files that may need to be edited later?
    14·1 answer
  • In cell J6, insert a formula using the OR function that returns TRUE if the rating (cell 16) equals "A" or the email reminder (c
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!