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
Pie
3 years ago
9

Which of the following is the reason of Java programs platforms independence​

Computers and Technology
1 answer:
Ymorist [56]3 years ago
5 0

Answer:

Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermidiate Language. Bytecode can be executed on any platform (OS) using JVM( Java Virtual Machine). ... Platform independent language means once compiled you can execute the program on any platform (OS).

Explanation:

You might be interested in
The whole-part relationship created by object aggregation is more often called:___________.
Sindrei [870]
A. A has a relationship
4 0
3 years ago
While doing research on the Internet, what kind of website should you avoid because the information may be biased?
Alexeev081 [22]
Most likely blogs, because these are what people write on for personal reasons
5 0
3 years ago
When an object is created, the attributes associated with the object are called: A. instance fields B. instance methods C. fixed
solmaris [256]

Answer:

Option A is the correct answer for the above question

Explanation:

The object is used to take memory for the class member and functions because the class is the only structure which defines the types of the member for that class. The class object is used to reference a member of the class. The object of the class is known as an instance of the class and the one object variables value is different from the other objects variable value for the same class. So the object is used to holds the instance field because the object is used to initialize the value of the variable of the class. So the attributes associated with the class object can be called the instance field . The above question also asked the same and the answer is Instance field which is stated from the option A. Hence Option A is the correct answer while the other is not because--

  • Option B states about instance method which refers to the method of a class for which that object is created.
  • Option C states about the fixed attributes which are not the correct answer.
  • Option D states about class instances which refer to the object of the class.

8 0
4 years ago
Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating value ZZZ. Store each String in
notsponge [240]

Answer:

count = 20

i = 0

short_strings = []

long_strings = []

while(i<count):

   s = input("Enter a string: ")

   

   if s == "ZZZ":

       break

   

   if len(s) <= 10:

       short_strings.append(s)

   elif len(s) >= 11:

       long_strings.append(s)

   

   i += 1

choice = input("Enter the type of list to display [short/long] ")

if choice == "short":

   if len(short_strings) == 0:

       print("The list is empty.")

   else:

       print(short_strings)

else:

   if len(long_strings) == 0:

       print("The list is empty.")

   else:

       print(long_strings)

Explanation:

*The code is in Python.

Initialize the count, i, short_strings, and long_strings

Create a while loop that iterates 20 times.

Inside the loop:

Ask the user to enter a string. If the string is "ZZZ", stop the loop. If the length of the string is smaller than or equal to 10, add it to the short_strings. If the length of the string is greater than or equal to 11, add it to the long_strings. Increment the value of i by 1.

When the loop is done:

Ask the user to enter the list type to display.

If the user enters "short", print the short list. Otherwise, print the long_strings. Also, if the length of the  chosen string is equal to 0, print that the list is empty.

3 0
4 years ago
List the step in turning on a computer
kondaur [170]
On the CPU first and then then the power button if there is password access then u have to type the password
this Much only
hope it helps :)
7 0
4 years ago
Other questions:
  • You use this method to determine the number of items stored in an arraylist object.
    12·1 answer
  • Instructions:Select the correct answer.
    6·2 answers
  • Which tasks can be completed using the Chart Tools Design tab? Check all that apply.
    9·1 answer
  • What is the default method of referencing cells in formulas?
    6·1 answer
  • Which characteristic of a relational database distinguishes it from a flat file?
    5·1 answer
  • Who watches Riverdale ? if you do can we be friends(pLEASE DON'T DELETE) and also who is your fav character from Riverdale
    8·2 answers
  • Which feature of a website takes you to a different part of the website or a totally different website when you click on it? A.
    8·1 answer
  • A small company with 100 computers has hired you to install a local area network. All of the users perform functions like email,
    9·1 answer
  • What do you think entertainment or gaming platforms will look like in the future?
    9·1 answer
  • alle Mbawah: Attempt 1 How does a bystander become an advocate? By harassing the bully until he or she stops the harmful activit
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!