1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stellarik [79]
3 years ago
13

How does java achieve portable

Engineering
1 answer:
sergejj [24]3 years ago
5 0

Answer:

Java is called portable because you can compile a java code which will spew out a byte-code, and then you run that code with Java Virtual Machine. Java Virtual Machine is like an interpreter, which reads the compiled byte-code and runs it. So first of all, you need to install the JVM on the system you want.

Explanation:

You might be interested in
The following electrical characteristics have been determined for both intrinsic and p-type extrinsic gallium antimonide (GaSb)
xxTIMURxx [149]

Answer:

0.5m^2/Vs and 0.14m^2/Vs

Explanation:

To calculate the mobility of electron and mobility of hole for gallium antimonide we have,

\sigma = n|e|\mu_e+p|e|\mu_h (S)

Where

e= charge of electron

n= number of electrons

p= number of holes

\mu_e= mobility of electron

\mu_h=mobility of holes

\sigma = electrical conductivity

Making the substitution in (S)

Mobility of electron

8.9*10^4=(8.7*10^{23}*(-1.602*10^{-19})*\mu_e)+(8.7*10^{23}*(-1.602*10^{-19})*\mu_h)

0.639=\mu_e+\mu_h

Mobility of hole in (S)

2.3*10^5 = (7.6*10^{22}*(-1.602*10^{-19})*\mu_e)+(1*10^{25}*(-1.602*10^{-19}*\mu_h))

0.1436 = 7.6*10^{-3}\mu_e+\mu_h

Then, solving the equation:

0.639=\mu_e+\mu_h (1)

0.1436 = 7.6*10^{-3}\mu_e+\mu_h (2)

We have,

Mobility of electron \mu_e = 0.5m^2/V.s

Mobility of hole is \mu_h = 0.14m^2/V.s

6 0
3 years ago
Your Java program will be reading input from a file name strInput.txt. Each record contains String firstname String lastName Str
stiks02 [169]

Answer:

The program requires that you have the specified input files and it reads from each file at a time and processes salary in digits, states the city, state and bonus with respective first and last name as requested in the question. Note that you must have access to the mentioned output files for the program to work properly. Below is the java version of the program.

import java.io.File;

import java.io.FileNotFoundException;

import java.io.PrintWriter;

import java.util.Scanner;

class Driver

{

public static void main(String[] args) throws FileNotFoundException

{

Scanner sc = new Scanner(new File("strInput.txt"));

PrintWriter pd = new PrintWriter(new File("strOutputD"));

PrintWriter prf = new PrintWriter(new File("strOutputRF"));

String firstname = "", lastname = "", strSalary = "", status = "", cityState = "", city = "", state = "";

double salary = 0, bonus = 0;

int incorrectRecords = 0;

int dRecords = 0;

int fRecords = 0;

while(sc.hasNextLine())

{

firstname = sc.next();

lastname = sc.next();

strSalary = sc.next();

status = sc.next();

cityState = sc.next();

if(!status.equals("D") && !status.equals("F"))

{

System.out.println("Records is neither D nor F. Skipping this...");

incorrectRecords++;

continue;

}

else if(status.equals("D") || status.equals("F"))

{

char c = ' ';

int i = 0;

for(i=0; i<strSalary.length() && c != '.'; i++)

{

c = strSalary.charAt(i);

if(!Character.isDigit(c))

{

System.out.println("Char at position " + (i+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

}

if(c == '.')

{

if(i+1 == strSalary.length()-1)

{

if(!Character.isDigit(strSalary.charAt(i)))

{

System.out.println("Char at position " + (i+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

if(!Character.isDigit(strSalary.charAt(i+1)))

{

System.out.println("Char at position " + (i+1+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

}

else

{

System.out.println("Period is in the wrong position. Expected at " + (strSalary.length()-3) + " but found at " + (i+1));

continue;

}

}

city = cityState.split(",")[0];

state = cityState.split(",")[1];

salary = Double.parseDouble(strSalary);

if(status.equals("D"))

{

bonus = salary * 0.125;

dRecords++;

pd.write(firstname + " " + lastname + " " + status + " " + salary + " " + bonus + " " + city + " " + state);

}

else

{

bonus = salary * 0.18;

fRecords++;

prf.write(firstname + " " + lastname + " " + status + " " + salary + " " + bonus + " " + city + " " + state);

}

}

}

System.out.println("No of D records : " + dRecords);

System.out.println("No of F records : " + fRecords);

System.out.println("No of incorrect records : " + incorrectRecords);

}

}

6 0
3 years ago
List and describe three classifications of burns to the body.
DiKsa [7]

AnswerWhat Are the Classifications of Burns? Burns are classified as first-, second-, or third-degree, depending on how deep and severe they penetrate the skin's surface. First-degree burns affect only the epidermis, or outer layer of skin. The burn site is red, painful, dry, and with no blisters.

Explanation:

8 0
3 years ago
Read 2 more answers
A number 12 copper wire has a diameter of 2.053 mm. Calculate the resistance of a 37.0 m long piece of such wire.
Alinara [238K]

Answer:

R=1923Ω

Explanation:

Resistivity(R) of copper wire at 20 degrees Celsius is 1.72x10^-8Ωm.

Coil length(L) of the wire=37.0m

Cross-sectional area of the conductor or wire (A) = πr^2

A= π * (2.053/1000)/2=3.31*10^-6

To calculate for the resistance (R):

R=ρ*L/A

R=(1.72*10^8)*(37.0)/(3.31*10^-6)

R=1922.65Ω

Approximately, R=1923Ω

5 0
3 years ago
When passing another vehicle, when is it acceptable to drive over the
miss Akunina [59]

Answer:

Under no circumstances

Explanation:

I'm not 100% sure why, but I remember hearing that you're not suposed to go over the speed limit no matter what

7 0
3 years ago
Read 2 more answers
Other questions:
  • A food department is kept at -12 °C by a refrigerator in an environment at 30 °C. The total heat gain to the food department is
    8·1 answer
  • A horizontal 2-m-diameter conduit is half filled with a liquid (SG=1.6 ) and is capped at both ends with plane vertical surfaces
    11·1 answer
  • Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B tr
    9·1 answer
  • A decorative fountain was built so that water will rise to a hieght of 8 feet above the exit of the pipe. the pipe is 3/4 diamet
    5·1 answer
  • A spherical tank for storing gas under pressure is 25 m in diameter and is made of steel 15 mm thick. The yield point of the mat
    5·2 answers
  • Q#3:(A)Supose we extend the circular flow mode to add imports and export copy the circular flow digram onto a sheet paper and th
    15·1 answer
  • A rotor in a compressor stage has a mean blade radius of 0.285 m and an angular rotor velocity of 8500 RPMs. The static temperat
    9·1 answer
  • How to update android 4.4.2 to 5.1 if there isnt any update available​
    15·2 answers
  • The sum of forces on node 2 (upper-left) is ______.
    11·1 answer
  • When recycling paint booth filters, you must put them in an __________ container for transport as a solid waste.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!