Answer:
The code will give an error that is "At least one public class is required in main file".
Explanation:
In the given code if we do not use the public access modifier to the class. It will give an error so, the correct code to this question as follows:
Program:
import java.util.HashSet; //import package
public class A //define class as public.
{
public static void main(String[ ] args) //define main method.
{
HashSet set = new HashSet(); //creating hashset object.
set.add("A"); //add alphabet in hashset
set.add("B"); //add alphabet in hashset
set.add("C"); //add alphabet in hashset
System.out.print("Size of HashSet is :"set.size()); //print the size of hashset.
}
}
Output:
Size of HashSet is : 3
Explanation of the program:
- In the above program, we define a public class that is "A" and inside the class, we define the main method.
- Inside the main method, we create a HashSet class object that is "set".
- To add elements in HashSet we use add() function that adds elements and in the last, we use the size() function that prints the size HashSet.
Answer:
page break shows the end of a page.
Computer is your best answer.
If you download the files, they will show up either on your computer home screen, or in the 'downloads' section of your computer files.
hope this helps
Answer:
intelligence
Explanation:
According to my research on information technology, I can say that based on the information provided within the question if this happens then we can say that the computer has attained intelligence. This is because this is a test developed by Alan Turing in 1950, in order to observe a machine's ability to exhibit intelligent behavior equal to, or indistinguishable from, that of a human.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Answer:
All of the above.
Explanation:
API is an acronym for application programming interface and it can be defined as a software intermediary (computing interface) comprising of sets of codes, tools and protocols that helps software applications and the computer to communicate with each other, as well enable the exchange of data. Some examples of popular APIs are Go-ogle, Face-book, Twitter etc.
The main characteristics and functions of an application programming interface (API) includes;
I. Allows different devices to connect with each other.
II. Allows for Interactivity between devices and software.
III. Messenger program that takes requests and delivers the response back to the user.
IV. Allows the creation of applications that access the features or data of an operating system, application, or other services.
V. Specifies how software components should interact.
VI. Used when programming graphical user interface (GUI) components