The cursor should move right but if not give me more information to correct my statement
The protocol that should be used for establishing a secure network connection is SSH.
The following information is to be considered:
- SFTP is secure also it is a protocol for file transferring that applied SSH.
- IP, FTP, and DHCP should not be for safety purposes as they are not secure.
- SSH is a secured connection for the remote sites so here the SSH protocol should be used.
Therefore we can conclude that The protocol that should be used for establishing a secure network connection is SSH.
False.
The different between break and continue instruction is that with break you exit the loop, and with continue you skip to the next iteration.
So, for example, a loop like
for(i = 1; i <= 10; i++){
if(i <= 5){
print(i);
} else {
break;
}
}
will print 1,2,3,4,5, because when i=6 you will enter the else branch and you will exit the loop because of the break instruction.
On the other hand, a loop like
for(i = 1; i <= 10; i++){
if(i % 2 == 0){
print(i);
} else {
continue;
}
}
Will print 2,4,6,8,10, because if i is even you print it, and if i is odd you will simply skip to the next iteration.
Answer:
//here is code in java.
import java.util.*;
class Solution
{
// main method of class
public static void main (String[] args) throws java.lang.Exception
{
try{
// declare an initialize first string variables
String st1="hello";
// declare an initialize first string variables
String st2="world";
// create another string variable
String st3;
// exchange the value of both string variables
st3=st1;
st1=st2;
st2=st3;
System.out.println("value of first String after exchange: "+st1);
System.out.println("value of second String after exchange: "+st2);
}catch(Exception ex){
return;}
}
}
Explanation:
declare and initialize two string variables.Create another string variable "st3". first assign value of "st1" to "st3" after then value of "st2" to "st1" and then assign value of "st3" to "st2". This will exchange the values of both the string.
Output:
value of first String after exchange: world
value of second String after exchange: hello
Answer:
The program completed in a third of the time with six computers versus one computer.
Explanation: