Answer:
collaboration diagram
Explanation:
Collaboration diagram -
It refers to the diagram , which showcase the link between the unified modeling language with the software object , is referred to as the collaboration diagram.
It is also called the communication diagram .
These diagram are very important for a company as it is the pictorial representation.
Various software are used to make these diagrams.
Answer:
Exceptions are raised using throw statement in c++.
Explanation:
Try block is used to keep the statements which we felt that they will raise an exception. Catch block is used to catch the exception which is thrown by the try block.
#include<iostream.h>
void main(){
int x,y,z;
try{
cout<"enter 2 numbers";
cin>>x>>y;
if(y==0)
throw y;
z=x/y;
}
catch(int x){
cout<<"exception caught";
}
}
Answer:
runtime error
Explanation:
Based on the information provided within the question it can be said that the line of code "System.out.println(resultSet.getString(1));" would not print out anything and instead would give you a runtime error. This is because there is no resultSet.next() line in your code allowing for the resultSet to start in the first row and move consequently down the rows. Thus giving a runtime error.
If you have any more questions feel free to ask away at Brainly.
Answer:
I am doing it with python.
Explanation:
nums = '9 -8 -7 -6 -5 -4 -2 0 1 5 9 6 7 4'
myfile = open('data.txt', 'w')
myfile.write(nums)
myfile.close()
myfile = open('data.txt', 'r')
num1 = (myfile.read())
num1 = num1.split()
print(num1)
print(type(num1))
for x in num1:
x = int(x)
if x < 0:
minus = open('dataminus.txt', 'a')
minus.write(str(x) + ' ')
minus.close()
elif x>= 0:
plus = open('dataplus.txt', 'a')
plus.write(str(x)+' ')
plus.close()