Would this compile? If not, what change do you need to make so that it will compile?

```
public int test2 ( int x )
{
System.out.println ( " In Test2 " ) ;
}
```


No, it will not compile. You will get the following error:
Error: missing return statement

Computer Science & Information Technology

You might also like to view...

A(n) ________ measures the amount of movement in any direction so that they can detect shaking or rotation

Fill in the blank(s) with correct word

Computer Science & Information Technology

A one-dimensional code containing a series of black and white vertical bars is a ________ code

A) bar B) smartphone C) quick response D) recognition

Computer Science & Information Technology

The ____________________ and ostream classes provide the data declarations and methods used for data input and output, respectively.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When you use Modernizr, you can write style rules that apply only to children of elements with specific __________ values.

A. class B. ID C. type D. src

Computer Science & Information Technology