Answer:
public class Triangle
{
public static void main( String[] args )
{
show( 5 );
}
public static void show( int n )
{
int i,j,k;
for (i = 0; i < n - 1; i++ )
{
for (j = 0; j < i; j++ )
{
System.out.print( " " );
}
for (k = n - i; k > 0; k-- )
{
System.out.print( "* " );
}
System.out.println();
}
for (i = 0; i < n; i++ )
{
for (j = n - i; j > 1; j-- )
{
System.out.print( " " );
}
for (k = 0; k < i + 1; k++ )
{
System.out.print( "* " );
}
System.out.println();
}
The only sure way to prevent SQL Injection attacks is input validation and parametrized queries including prepared statements. The application code should never use the input directly. ... Database errors can be used with SQL Injection to gain information about your database.
Answer:
anycast
Explanation:
Anycast -
It refers to as the routing methodology and the networking address where only one destination address has more than two pathway for the end destination , is referred to as an anycast .
In this case , the router has the capability to select the pathway to reach the destination , depending on the latency measurement , cost , distance and hops .
Hence , from the given information of the question ,
The correct answer is anycast .
Answer:
- Inheritance
- Data abstraction or Data encapsulation
- Polymorphism.
Explanation:
The three fundamental features of an object oriented programming language are written above.
1. Inheritance:It is the mechanism when a class acquires the properties of some other class.The class which acquires the properties is called the child class and the class from which properties are inherited is called the base class.
2. Data encapsulation is clubbing different types of data in one place.That what class does .It can contain different data types in one place and those variables can be public ,private or protected.
3.Polymorphism it the property when an entity is processed in more than one form.Either be it run time or compile time polymorphism .
Answer:
solution attached.
Explanation:
Also, the tetha time complexity of T_upper would be