Answer:
Explanation:
Based on the available options the one that would be correct would be that the code to define your class (beginning with "class bike") must come before the line "bikeA = bike('Acme' 111)." This is because the line of code declaring the object and initializing it needs to be able to grab the information of the class that it is creating an object of. To do this, the class would need to have already been compiled by the program. It is good practice to have each class definitions as its own separate files but this is not a necessity.
Answer:
// here is code in Java.
// package
import java.util.*;
// class definition
class Main
{
// method that return sum of two sale value
public static int Add(int euroSales,int asiaSales)
{
// return the sum
return euroSales+asiaSales;
}
//main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// variables
int euroSales=100;
int asiaSales=150;
int eurasiaSales;
// call the function
eurasiaSales=Add(euroSales,asiaSales);
// print the sum
System.out.println("total sale is:"+eurasiaSales);
}catch(Exception ex){
return;}
}
}
Explanation:
Declare and initialize two variables "euroSales=100" and "asiaSales=150". Declare another variable eurasiaSales. Call the method Add() with euroSales and asiaSales as parameter. This method will add both the value and return the sum.This sum will be assigned to variable eurasiaSales.Then print the sum.
Output:
total sale is:250
Answer:
The data transmission time will be 8 seconds (8.0s)
Explanation:
Using the formular:
T =A/S
T=Time = ?
Amount of Data = A = 2GByte
Speed = S = 2Gbps
The units of A and S are different
A is expressed in Bytes(B)
S is expressed in bits(b)
But :
1 Byte(B) = 8 bits(b)
T = A/S = 2GB/2Gb
since 1 Byte = 8 bits
T = 2 × G ×( B =8bits) / 2 × G × b
T = 2 × G × 8b / 2 × G × b
T = 2 × G × 8 × b / 2 × G × b
The common terms(2,G,b) cancel out
T = 8 seconds
Answer:
The answer to the given question is "True".
Explanation:
In the database, we use the queries, when some error has occurred with queries so, the database provides a PL/SQL that is known as the procedural language that is the combination of the structured query language.
In this programming language, we use some triggers that are mainly available with database. The triggers are a set of the code that is executed automatically when an interruption has occurred.
That's why the answer to this question is "True"