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
IRISSAK [1]
3 years ago
6

What is java Encapsulation?​

Computers and Technology
1 answer:
mart [117]3 years ago
4 0

Answer:e

Explanation: Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. The other three are inheritance, polymorphism, and abstraction. Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit

You might be interested in
Suppose L is a LIST and p, q, and r are positions. As a function of n, the length of list L, determine how many times the functi
xz_007 [3.2K]

Answer:

Explanation:

  p := FIRST(L);

  while p <> END(L) do begin

      q := p;

      while q <> END(L) do begin

          q := NEXT(q, L);

          r := FIRST(L);

          while r <> q do

              r := NEXT(r, L)

      end;

      p := NEXT(p, L)

  end;

5 0
3 years ago
What does it mean to say that a graph is complete?
melisa1 [442]

Explanation:

The statement which says that a graph is complete means an undirected graph whose every pair of vertices is connected by an particular edge or unique edge.

An undirected graph is a graph whose edges soea not contain any direction means to which vertex they are directed.

A complete graph has an edge between every pair of vertices that exist in that graph.

3 0
3 years ago
What is achieved through xylography
ryzh [129]
As a relief method, it is only necessary to ink the block and bring it into firm and even contact with the paper or cloth to achieve an acceptable print.
4 0
3 years ago
Read 2 more answers
What is a lease? AA contract outlining the terms of a mortgage. BA contract outlining the terms under which a landlord agrees to
Lesechka [4]

B. A contract outlining the terms under which a landlord agrees to rent property to a tenant.   
A lease is where you arrange to use someone else's property, generally in exchange for money. The ownership of the property remains with the other entity. So with that in mind, let's look at the options.  
A. A contract outlining the terms of a mortgage.  
* This is a contract arranging for the transfer of ownership of property from one entity to another. So this is not a lease and is a bad choice.  
B. A contract outlining the terms under which a landlord agrees to rent property to a tenant.  
* This does meet the definition of a lease. You rent and therefore use someone else's property, but the ownership of the property remains with the landlord. So this is the correct choice.  
C. A loan from a bank used to rent a home. 
 * This does not meet the definition of a lease and is therefore a bad choice. 
 D. A loan from a bank used to buy a house. 
* This also does not meet the definition of a lease and is therefore a bad choice.
5 0
3 years ago
Write a method that takes three numerical String values and sums their values.
Sphinxa [80]

Answer:

<u>Algorithm</u>:

  1. Take a int variable c=0.
  2. Run the loop from 0 to String length.
  3. Get the each index value using charAt() method which will return the char value.
  4. Convert that char into int by typecasting or any other way.
  5. Now check that ASCII fall into the range of 48-57 for 0-9 int number.
  6. If it matches then first convert that number into integer using Integer.parseInt().
  7. Then add with the c and store to the same variable i.e c.
  8. Repeat from 3-7 till the end of the loop.
  9. At the end of loop , Print c outside the loop.

Explanation:

// Java program to calculate sum of all numbers present  

// in a string containing alphanumeric characters  

class GFG  

{  

   // Function to calculate sum of all numbers present  

   // in a string containing alphanumeric characters  

   static int findSum(String str)  

   {  

       // A temporary string  

       String temp = "";  

       // holds sum of all numbers present in the string  

       int sum = 0;  

       // read each character in input string  

       for(int i = 0; i < str.length(); i++)  

       {  

           char ch = str.charAt(i);  

           // if current character is a digit  

           if (Character.isDigit(ch))  

               temp += ch;  

           // if current character is an alphabet  

           else

           {  

               // increment sum by number found earlier  

               // (if any)  

               sum += Integer.parseInt(temp);  

               // reset temporary string to empty  

               temp = "0";  

           }  

       }  

       // atoi(temp.c_str()) takes care of trailing  

       // numbers  

       return sum + Integer.parseInt(temp);  

   }    

   // Driver code  

   public static void main (String[] args)  

   {      

       // input alphanumeric string  

       String str = "1abc5yz7";  

       System.out.println(findSum(str));  

   }  

}  

4 0
3 years ago
Read 2 more answers
Other questions:
  • What are strategies that you can use to yield web sites that are relevant to your research topic?
    13·1 answer
  • Which is the main reason why IT professionals need to pursue continuing education and self-directed learning?
    6·2 answers
  • According to many experts how often should files be backed up
    12·2 answers
  • You can decide if a paint booth filter is hazardous waste by answering which of the following questions: A) Is the paint residue
    12·2 answers
  • Consider the following relationship involving two entities, students and classes:A student can take many classes. A class can be
    9·1 answer
  • What is not soured of income
    6·1 answer
  • _____ are independent and not associated with the marketing efforts of any particular company or brand.​
    9·1 answer
  • Information systems cannot solve some business problems. Give three examples and explain why technology cannot help
    11·1 answer
  • 7. Four more than negative eleven times a number is 26.​
    7·2 answers
  • Which of the following can technology NOT do?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!