class ThreadEx extends Thread{public void run(){System.out.print("Hello...");}public static void main(String args[]){ThreadEx T1 = new ThreadEx();T1.start();T1.stop();T1.start();}}
int a=1;while (true){System.out.println (a);if(a==5)break;a++;}
class sookshmas{static int k=(10,3);static int d=(10,3,3);public:void call(){coutd" "k;}};int main(){sookshmas s;s.call();return 0;}
static void show();int main(){printf("ROCKET ");show();return 0;}static void show(){printf("STATIC");}
public class Sookshmas{public static void main (String args[]){int a=63, b=36;boolean x = (ab) ? true : false;int y= (ab)? a : b;System.out.println(x);System.out.println(y);}}
#include stdio.hWhat is the output of the following programvoid bubbleSort(int arr[], int n) {int i, j, temp;for (i = 0; i n - 1; i++) {for (j = 0; j n - i - 1; j++) {if (arr[j] arr[j + 1]) {temp = arr[j];arr[j] = arr[j + 1];arr[j + 1] = temp;}}}}int main() {int arr[] = {5, 1, 4, 2, 3};int n = sizeof(arr) / sizeof(arr[0]);int i;printf("Before sorting: ");for (i = 0; i n; i++) {printf("%d ", arr[i]);}printf("\n");bubbleSort(arr, n);printf("After sorting: ");for (i = 0; i n; i++) {printf("%d ", arr[i]);}printf("\n");return 0;}