Answer: There are many different types of application architectures, but the most prominent today, based on the relationships between the services are: monoliths and N-tier architecture, microservices, and event-driven architecture and service-oriented architecture.
Explanation: A layered or N-tier architecture is a traditional architecture often used to build on-premise and enterprise apps, and is frequently associated with legacy apps.
A monolith, another architecture type associated with legacy systems, is a single application stack that contains all functionality within that 1 application. This is tightly coupled, both in the interaction between the services and how they are developed and delivered.
Microservices are both an architecture and an approach to writing software. With microservices, apps are broken down into their smallest components, independent from each other. Each of these components, or processes, is a microservice.
With an event-driven system, the capture, communication, processing, and persistence of events are the core structure of the solution. This differs from a traditional request-driven model.
The service-oriented architecture (SOA) is a well-established style of software design, that is similar to the microservices architecture style.
Answer:
scope
Explanation:
Destructor is a member function and it call automatically when the class object goes out of scope.
Out of scope means, the program exit, function end etc.
Destructor name must be same as class name and it has no return type.
syntax:
~class_name() { };
For example:
class xyz{
xyz(){
print(constructor);
}
~xyz(){
print(destructor);
}
}
int main(){
xyz num;
}//end program
when the object is create the constructor will called and when the program end destructor will call automatically.
Answer:
B. GRID COMPUTING , ON - DEMAND COMPUTING AND REAL TIME COMPUTING
Explanation:
Grid computing, on-demand computing and real time computing are currently the most impactful information technology processes. The Grid computing from example entails distributed computing whereby computing resources are distributed across different systems for a computing task. This is seen in server systems where a super virtual computer composed of a network of computers are connected to share resources and perform large tasks. This form of computing has majorly affected and improved complex computing tasks today.
On demand and real time computing are also other notable trends in IT with real time computing bringing the power of live and direct coverage of information to our screens and on demand making it possible for the average user to access computing resources as needed such as in the services of cloud computing providers
Answer:
Static variables are the variables decaraed with keyword static, static variables must be deacraled inside the class body, means we can not declare a static variable inside a method or consttructor, static variable belongs to class, for a class only one copy is created for static variable and used by all the objects/instances.
Static variable can access with class name like
X.i
Static method are the methods defined with static keyword, static method are also part of a class, we can access static meethod using class name like
X.printI()
Explanation:
class X
{
//to create a static variable we need use static keyword with variable name like
public static int i;
// to create a static method we need to use static keyword while defining a method like
public static void printHello() {
System.out.println("Hello");
}
/*
* A non static method can access static variable of a class there is no issue
* with that we can use a static variable in a non static method like
*/
public void printI() {
System.out.println(i);
}
/*
* As long as the class exist in JVM static variables will be there, as static
* variable belong to class not with the instance,
* it does not matters if there are instance exist or not
*/
}