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
Dmitry [639]
4 years ago
9

Explain the usage of the keywordtransient?

Computers and Technology
1 answer:
Murljashka [212]4 years ago
8 0

Answer:

'transient' is a java language keyword used to mark fields which should not be included in object serialization.

Explanation:

When an object is serialized, that is, when the object is persisted in the file system, some of the fields may not be relevant for storage and restoration. An example might be a connection object to a database which might become stale by the time when the object is deserialized. Such fields can be marked as 'transient' to ensure that they are not part of the serialization mechanism for the object.Usage is as follows:

transient <datatype> <variable-name>;

e.g.,  

class Demo{

   String name;

   int age;

   transient int income;

}

You might be interested in
Match the job titles to the tasks
bija089 [108]

creates storyboards based on clients’ needs- Animator


assesses proposals for airplane designs to determine if they meet standards- Aeronautical engineer


uses special equipment and techniques to capture images- Commercial Photographer


creates software code, graphics, and multimedia elements for websites- Webpage designer

5 0
3 years ago
Read 2 more answers
Select the correct answer.
sashaice [31]

Answer:

A. Project Manager

Explanation:

3 0
4 years ago
Read 2 more answers
Software development team leaders need (blank)<br> skills to excel in directing their teams.
sattari [20]

This is a very tricky question since I do not have multiple choices I can choose from. However, software development team leaders or project managers enhanced leadership/management skills. They should also be flexible and focused on business values. They should be able to have people skills and be able to build and maintain excellent relationships with team members.








4 0
4 years ago
Why did i get blocked
sergejj [24]
Because you asked something innnapropiate
7 0
3 years ago
Read 2 more answers
Which of the following helps create a positive community?
natita [175]

Answer:

Less Violence?

6 0
4 years ago
Other questions:
  • Ruby is creating a presentation. She wants each slide displayed at intervals of five seconds. Which feature in the presentation
    6·2 answers
  • What is an examlple of cyberbullying
    5·1 answer
  • A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 6 and 2, the result is
    13·1 answer
  • I need an answer and fast What happens if a sequence is out of order?
    5·2 answers
  • The ________ component of the five-component framework of an information system includes individuals who maintain the data and s
    5·1 answer
  • The following shared data structures must be declared as global variables such that they are shared by all threads
    7·1 answer
  • Here is what my rob-lox user USED to look like, btw what is better, Samsung or apple?
    13·2 answers
  • Your development server is experiencing heavy load conditions. Upon investigating, you discover a single program using PID 9563
    5·1 answer
  • Becuase privacy is personal customers, where should your data privacy efforts align?
    13·1 answer
  • Fast i need now ill give anything
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!