Answer:
Constructor issue
Explanation:
When you look at the Class A, the constructor takes one argument as a parameter, a String.
A(String newS) {
s = newS;
}
However, in the main, the constructor does not take any argument as a parameter.
A a = new A();
That's why the code does not compile.
If a run-time error appears when you run a macro that has worked in the past, some part of the macro code no longer makes sense to excel, ehere run-time denotes <span> the time during which a program is running</span>
This error occurs while the program is running.
Running<span> out of memorywill results in a </span>run-time error.
Answer:
Explanation:
The following code is written in Java. It asks the user for an input and saves it in a String variable. Then it loops through all the characters in the string and counts the spaces. Finally, it prints the total number of spaces in the String.
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter Line Now:");
String userInput = in.nextLine();
int spaceCount = 0;
for (int x = 0; x < userInput.length(); x++) {
if (userInput.charAt(x) == ' ') {
spaceCount++;
}
}
System.out.println(spaceCount);
}
<span>You should do it if C. it will take less than two minutes to complete </span>
Answer:
Windows utility program.
Explanation:
The operating system is a software used to manage the activities of various parts of the computer system. It acts as a link between the hardware, application software and the user. An example of OS is the Windows OS.
It has the kernel program that directly connects the hardware to the operating system. It provides utility programs to analyse, optimise, control and maintain devices running in the system.
Window utility program is an example of utilities in OS, used to analyse, control, optimise and maintain device and software activities for good system performance.
An example of the windows utility program is the disk defragmenter used to eliminate fragments and rearrange files and unused disk space.