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
What is the technical term of a native programming language?​
topjm [15]

Native Code Or Machine Language

4 0
3 years ago
What are the functions of language in logic?​
kifflom [539]

Answer:

Three basic functions of language: Informative, Expressive, and Directive Language

  • Informative language. Simply put, informative language can be looked at as though it is either right or wrong, or true or false
  • Expressive language
  • Directive language

7 0
3 years ago
Please use thread to complete the following program: one process opens a file data.txt, then creates a thread my_thread. The job
Firlakuza [10]

Answer:

Here is the code:-

//include the required header files

#include<stdio.h>

#include<pthread.h>

// method protocol definition

void *count_lines(void *arg);

int main()

{

    // Create a thread handler

    pthread_t my_thread;

    // Create a file handler

    FILE *fh;

    // declare the variable

    int *linecnt;

    // open the data file

    fh=fopen("data.txt","r");

// Create a thread using pthread_create; pass fh to my_thread;

    pthread_create(&my_thread, NULL, count_lines, (void*)fh);

    //Use pthread_join to terminate the thread my_thread

    pthread_join( my_thread, (void**)&linecnt );

    // print the number of lines

printf("\nNumber of lines in the given file: %d \n\n", linecnt);

    return (0);

}

// Method to count the number of lines

void *count_lines(void *arg)

{

    // variable declaration and initialization

    int linecnt=-1;

    char TTline[1600];

    //code to count the number of lines

    while(!feof(arg))

    {

         fgets(TTline,1600,arg);

         linecnt++;

    }

    pthread_exit((void *)linecnt);

    // close the file handler

    fclose(arg);

}

Explanation:

Program:-

8 0
3 years ago
Because of their reasonable cost and print quality ___ printers are used in homes and schools
serious [3.7K]

'INK-JET'
because of their reasonable cost and print quality ___ printers are used in homes and schools

7 0
4 years ago
Desktop is a computer term that refers to
sineoko [7]
Desktop refers to the screen that pops up first.
7 0
3 years ago
Other questions:
  • Max magnitude Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the
    13·1 answer
  • Nearly all states allow citizens who are not able to go to the polls due to business travel to vote using this method: Internet
    9·2 answers
  • Which is a good plan for backing up data?
    7·1 answer
  • Need help with these
    8·1 answer
  • Having friends who cause you stress can decrease your happiness, which can in turn
    13·2 answers
  • Write a program that prints the following 45 pairs of numbers:
    8·1 answer
  • According to the video, what types of education are useful for Database Administrators? Check all that apply.
    5·2 answers
  • What is it called when u want 2 or more cells into 1
    14·2 answers
  • Explica el empleo de cuentas y contraseñas en archivos
    6·1 answer
  • The Healthcare Innovation and Technology Lab would most likely be interested in which of the following app types?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!