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
kolezko [41]
3 years ago
10

) Doyou know applets and Java Beans in Java? Please briefly state eachone with an example.

Computers and Technology
1 answer:
m_a_m_a [10]3 years ago
8 0

Answer:

Java applets are the small programs written in java language.It is usually present on the web page .It has the also the property of working on HTML page and is client side based program which helps in making any website more attracting and active.

Example-the applet which is  running a particular window can be overwritten in other window as well.

Java Beans are the type of class that are used for encapsulating the other object in it.The execution and use of java beans can be don by using builder tools. It follows the getter and setter technique that help in providing the value of different  properties of by getting and setting it.

Example- AWT classes, Swing

You might be interested in
Consider the partially-filled array named a. What does the following loop do? (cin is a Scanner object)int[] a = {1, 3, 7, 0, 0,
boyakko [2]

Answer:

Option 1: May crash at runtime because it can input more elements than the array can hold

Explanation:

Given the code as follows:

  1.        int[] a = {1, 3, 7, 0, 0, 0};
  2.        int size = 3, capacity = 6;
  3.        int value = cin.nextInt();
  4.        while (value > 0)
  5.        {
  6.            a[size] = value;
  7.            size++;
  8.            value = cin.nextInt();
  9.        }

From the code above, we know the <em>a</em> is an array with six elements (Line 1). Since the array has been initialized with six elements, the capacity of the array cannot be altered in later stage.

However, a while loop is created to keep prompting for user input an integer and overwrite the value in the array started from index 3 (Line 4- 9). In every round of loop, the index is incremented by 1 (Line 7). If the user input for variable <em>value</em> is always above zero, the while loop will persist.  This may reach a point where the index value is out of bound and crash the program. Please note the maximum index value for the array is supposedly be 5.  

8 0
3 years ago
Write statements that output variable numMugs as follows. End with a newline. Ex: If numMugs is 10, the program should output: N
baherus [9]

Answer:

numMugs=input(); #take input from the user and store it on a numMugs variable.

print ('Number of mugs:'+numMugs) #print the numMugs variable value with the Number of mugs: line.

Output:

  • If the input is 8 then the program is print Number of mugs: 8.
  • If the input is 'Harry' then the program is print Number of mugs: Harry.

Explanation:

  • The above program is in python language with the two statements one in input and the other is output.
  • The first line takes input and stores it into a variable named "numMugs".
  • The second line print the value as Number of mugs: value_of_numMugs.
  • The above program works for any type of input. It can work for the string data type or integer data type or character data type or any other data type.
3 0
3 years ago
What best describes the purpose of the Recycle Bin (Microsoft Windows) and Trash (Apple Mac) features?
frez [133]

Answer:

Used for if you accidentally delete something or if you later want to retrieve something.

7 0
3 years ago
Read 2 more answers
Nina, a programmer, wants to use the programming language Primavera. For which application area should Nina use this language?
AnnyKZ [126]

C. Drawings is the correct answer

8 0
3 years ago
Read 2 more answers
Busca información (nombre, potencia y situación) de los parques eólicos de la Comunidad Valenciana. con más de 40 MW de potencia
Colt1911 [192]
I need this answer too can someone please help us out with the right answer ?!

Explanation:
6 0
3 years ago
Other questions:
  • Once Raul selects a technology solution, he has completed the process. <br> a. True<br> b. False
    13·2 answers
  • A poker hand consists of 5 cards drawn at random without replacement from a 52 card deck. Using python and the cards data frame
    12·1 answer
  • Compare GBN, SR, and TCP (no delayed ACK). Assume that the timeout values for all three protocols are sufficiently long such tha
    7·1 answer
  • Why is removing presentation-oriented markup from one's html document considered to be a best practice?
    14·1 answer
  • which feature will configuring a SOHO network in which all ports on the public untrusted network will be forwarded to one workst
    11·1 answer
  • What do you think of my profile picture
    8·2 answers
  • Can you shoot video on the Olympus E-410?
    12·2 answers
  • Can someone help me asap​
    13·1 answer
  • What will the "background-color" of the "topButton" be when the program is finished running?
    10·1 answer
  • A team member who feels uncomfortable when disagreeing with another team member is likely from a(n) _______(fill in the blank) c
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!