Answer:
// name of the package
package stringlength;
// Scanner is imported but it is not needed
// So it is commented
// import java.util.Scanner;
// The class name StringLength is defined
public class StringLength {
// main method to signify the beginning of program execution
public static void main(String[] args) {
// if-statement to check if argument is supplied to
// command line
if(args.length > -1) {
// the first argument is read and assigned to input
String input = args[0];
int length = input.length(); // using length() method in String class
System.out.println("Your string has a length of "+length+" characters.");
} else {
System.out.println("Please enter your string argument in quote");
}
}
}
Explanation:
The code works fine with little modification and comments. The user should supply the string arguments in quote. The quote must surround the strings because our logic read the first argument passed to the command line. Inserting a string with space between them will provide a wrong output.
A sample image is attached.
Answer:
Development task is the correct answer to the given question.
Explanation:
The database administrator is responsible for managing the database management system . The overall security of the database is depended on the database administrator.
The Development task include the following function
- Verification of the data model that is used by the database management system .
- Check the user input it means validating the data.
- Defining the overall requirement to create the model.
- Providing backup when the data is loss .
So the Development task is the correct answer.
TCP stands for Transmission Control Protocol for Communication of the Internet. It is used to interconnect network devices on the Internet and it is a connection oriented protocol which means that the connection between the devices (in our case host b and sever C) is established and maintained until they finish to exchange messages. Source port number specifies the <span>application or services on host b and destination port number on host c.
a. </span><span>The source and destination port numbers for the segments traveling from host c to host b are : source: 443 , destination: 2345.
b. From the destination port number (443) we can deduce that the server c that it is a web server. Port 443 is the standard port number for website which use SSL</span><span>(</span>Secure Sockets Layer<span>) .SSL is the standard security technology for establishing an encrypted link between a web server and a browser. </span>
Windows
uses a memory-management technique known as SuperFetch to monitor which
applications you frequently use and preloads them into your system
memory.
This technique is designed to speed
up app launching by preloading certain apps based on the usage
patterns of the user.
Answer:
You can apply accounting format,date,numbers, currency, percentage or even fraction
Explanation: