Examlex

Solved

What Is the Problem with the Code Snippet Below

question 58

Multiple Choice

What is the problem with the code snippet below?
Public class test02
{
Public static void main(String[] args)
{
System.out.println(cost(10, 4) ) ;
}
Public static void cost(int price, int reps)
{
For (int i = 0; i < reps; i++)
{
System.out.print(price) ;
}
Return;
}
}


Definitions:

Stated Value

An arbitrary value assigned to no-par value stock by the board of directors of a company, used for accounting purposes.

Date Of Record

The date of record is the specific date set by a company on which the shareholders must be on the company's books in order to receive a declared dividend.

Cash Dividend

The allocation of earnings in cash form by a company to its stockholders.

Retained Earnings Deficit

A negative balance in retained earnings, indicating that a company has more accumulated losses over time than accumulated profits.

Related Questions