Home / MCQ Bank / Computer
Computer Event Handling In Java Difficulty: Medium

Which method is used to handle input events in Java event handling?

Select the correct option to test your answer:

More Computer Questions

Which of the following property sets the spacing between words? What is the purpose of the `synchronized` keyword in Java? Which of the following is true about exception handling in C++? i. There is a standard exception class in C++ similar to Exception class in Java. ii. All exceptions are unchecked in C++, i.e., the compiler does not checks if the exceptions are caught or not. iii. In C++, a function can specify the list of exceptions that it can throw using comma separated list like following. void fun(int a, char b) throw (Exception1, Exception2, ..) What will be the size of the following C structure? #include <stdio.h> struct temp { int a[10]; char p; }; What will be the auxiliary space complexity of the following code? #include <iostream> using namespace std; int main() { int arr[] = {1,2,3,4,5,6}; int n = sizeof(arr)/sizeof(arr[0]); int d=4; int temp[10]; for(int i=0;i<d;i++) temp[i]=arr[i]; int j=0; for(int i=d;i<n;i++,j++) arr[j]=arr[i]; int k=0; for(int i=n-d;i<n;i++,k++) arr[i]=temp[k]; for(int i=0;i<n;i++) cout<<arr[i]<<" "; return 0; }