answersLogoWhite

0

📱

Java Programming

The Java programming language was released in 1995 as a core component of the Java platform of Sun Microsystems. It is a general-purpose, class-based, object-oriented language that is widely used in application software and web applications.

5,203 Questions

What is the name of the inbox file name and the address file name?

The inbox file name is typically referred to as "inbox" or "inbox.db," while the address file name is often called "contacts" or "addressbook.db." These names can vary based on the email or contact management system in use, but they generally follow this naming convention. Always check the specific application’s documentation for exact file names.

Can I take exception and hydrox pamoate?

It is generally not recommended to take Exception (a brand name for buprenorphine/naloxone) and hydroxypamoate together without consulting a healthcare professional. Both medications can affect the central nervous system, and combining them may increase the risk of adverse effects. Always consult your doctor or pharmacist for personalized advice based on your medical history and current medications.

What is the code in java by using array for a program to calculate electricity bill?

Here's a simple Java program that uses an array to calculate electricity bills based on units consumed:

import java.util.Scanner;

public class ElectricityBill {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double[] charges = new double[5]; // Assuming 5 customers
        double ratePerUnit = 5.0; // Example rate per unit

        for (int i = 0; i < charges.length; i++) {
            System.out.print("Enter units consumed by customer " + (i + 1) + ": ");
            int units = scanner.nextInt();
            charges[i] = units * ratePerUnit; // Calculate bill
        }

        System.out.println("Electricity Bills:");
        for (int i = 0; i < charges.length; i++) {
            System.out.println("Customer " + (i + 1) + ": $" + charges[i]);
        }
        scanner.close();
    }
}

This program prompts the user to enter the units consumed by multiple customers, calculates their bills based on a fixed rate, and displays the results.

What does it mean cannot find symbol in java?

The "cannot find symbol" error in Java typically occurs during compilation when the Java compiler encounters a reference to a variable, method, class, or package that it cannot recognize. This may happen due to typographical errors, incorrect variable or class names, or missing imports. It indicates that the code is trying to use something that hasn't been defined or is out of scope. To resolve this issue, you should check for spelling mistakes, ensure proper declarations, and confirm that all necessary imports are included.

What are methods of taking notes while reading?

1. Highlighting

2. Writing in the margins

3. Underlining

How do you remove error of uses or overrides a deprecated API in java?

To remove the error of using or overriding a deprecated API in Java, you should first identify the deprecated methods or classes in your code. Then, consult the documentation or release notes to find recommended alternatives or replacements for the deprecated API. Update your code to use these alternatives, ensuring that you test the changes to verify that functionality remains intact. If necessary, refactor your code to accommodate the new API structure.

What are the advantages of antivirus?

Antivirus software protects your PC from harmful virus. Free Download Antivirus Software, Scan your PC and make it virus free. Download Antivirus Software, Best Antivirus, Antivirus Reviews.
They stop your computer getting infected by viruses and Trojan horses, etc.

Public class Convert private int arr public Convert initialize array public int mystery int count 0 forint i 1i arr.length - 1i ifarri 0System.out?

int is as is. count 0 as arrlength. more than most (99.999%) need to attempt to Convert anyways or try for that matter. Odd counting, though.(:^

Java game on enV2?

NO! the enV2 runs only B.R.E.W. apps

What are the Disadvantages in converting class files to java files?

The only reason to convert a .class file to a .java file would be to attempt to reverse engineer a piece of Java code. Disadvantages of this would include near-incomprehensible code being produced by the reverse engineering program.

Where does java system setProperty store the data?

This seems to be both platform- and implementation-dependent. In some cases, properties may only be stored in memory, and will lose their value once the JVM exits. In other cases, properties may be written to disk and restored each time your program executes.

What is string printing?

where you take the a piece of sting dip it in the paint and put in a white piece of paper

How many classes should be included in each java file?

You can only have one non-inner public classes per java file and that class name must match the filename. The java file can also have any number of inner classes and anonymous classes.

How do you make a picture file smaller?

to make a picture file smaller, simply download a program in which you can resize and save photo. or you could go towww.resizr.com

What is the edge of java over other object oriented programming language?

I am not sure Java is the best language; different languages have different advantages and disadvantages. However, here are some of Java's advantages; some of these advantages are shared by other languages, too:

  • Good OOP implementation.
  • Works on multiple platforms, i.e., operating systems.
  • Built-in support for Unicode, this means you can easily work with different languages, even those that don't use a Latin alphabet.
  • Built-in multithreading.
  • Memory management is automatic.
  • The compiler does quite an effort to catch lots of errors during the compilation.


I am not sure Java is the best language; different languages have different advantages and disadvantages. However, here are some of Java's advantages; some of these advantages are shared by other languages, too:
  • Good OOP implementation.
  • Works on multiple platforms, i.e., operating systems.
  • Built-in support for Unicode, this means you can easily work with different languages, even those that don't use a Latin alphabet.
  • Built-in multithreading.
  • Memory management is automatic.
  • The compiler does quite an effort to catch lots of errors during the compilation.


I am not sure Java is the best language; different languages have different advantages and disadvantages. However, here are some of Java's advantages; some of these advantages are shared by other languages, too:
  • Good OOP implementation.
  • Works on multiple platforms, i.e., operating systems.
  • Built-in support for Unicode, this means you can easily work with different languages, even those that don't use a Latin alphabet.
  • Built-in multithreading.
  • Memory management is automatic.
  • The compiler does quite an effort to catch lots of errors during the compilation.


I am not sure Java is the best language; different languages have different advantages and disadvantages. However, here are some of Java's advantages; some of these advantages are shared by other languages, too:
  • Good OOP implementation.
  • Works on multiple platforms, i.e., operating systems.
  • Built-in support for Unicode, this means you can easily work with different languages, even those that don't use a Latin alphabet.
  • Built-in multithreading.
  • Memory management is automatic.
  • The compiler does quite an effort to catch lots of errors during the compilation.

What are legal int literals 22 1.5 -1 2.3 10.0 5 -6875309 '7'?

Java ints can be any whole number between 2147483647 and -2147483648

22 int

1.5 (illegal as it's a float)

-1 int

2.3 (illegal as it's a float)

10.0 (illegal as it's a float)

5 int

-6875309 int

'7' is a legal int, but it won't be a seven, but the decimal ASCII equivalent (assumes a single character in apostrophes is a char). '7' is 55

What does the plus in java mean?

It is used for addition - to add two numbers. Also, to concatenate two Strings (texts) - that is, to make a longer text from two shorter ones.