Answer:
When the element is not found we return -1.
Explanation:
When we use binary search we use BinarySearch() method of an array or list type when the element is found we return the index of the element if found if the element is not found we return -1.
We can decode this value since it is less than 0 and the indexing of arrays and lists starts with 0 upto the size-1.So -1 index is not present in the array or list.We have to check if the index is < 0 then the element is not present in the array or list.
for ex:-
if(index<0)
{
System.out.println("Element is not present in the array");
}
Answer:
The correct answer to the following question will be Metadata Management.
Explanation:
The management of data about the other data is known as Metadata Management. When the data is generated, updated, deleted, created, metadata is generated.
Benefits of Metadata management:
- To locate data for a person, the metadata management make it easier.
- Project delivery become faster.
- Maintain information of organization.
Hence, the Metadata Management will be the best suitable component which defined as the structure and meaning of business data.
Protecting the Power supply
Adding disk Arrays
Install an NLB Cluster
Answer:
The code will be a java-script code
Explanation:
public abstract class Phone{
private String phoneNumber ;
public Phone (String thePhoneNumber) {
phoneNumber = thePhoneNumber ;
}
public String getPhoneNumber ( ) {
return phoneNumber ;
}
public String toString ( ) {
phoneNumber = "# (" + phoneNumber + ") " ;
return phoneNumber ;
}
public abstract boolean createConnection (Network status) ;
public abstract void closeConnection( ) ;
}