def func():global valuevalue = "Local"value = "Global"func()print(value)
class Solution{int print2largest (int arr[],int n) {int largest=Integer.MIN_VALUE;int secondLargest=Integer.MIN_VALUE;for(int i=0;in;i++){if(arr[i]largest)largest=arr[i];}for(int i=0;in;i++){if(arr[i]secondLargest&&arr[i]largest)secondLargest=arr[i];}if(secondLargest==Integer.MIN_VALUE)retun-1;elsereturn secondLargest;}}What will be the output, if you use the inputs like 12 35 1 10 34 1
class Hey {public static void main(String[] args) {short y=100;y=y*5;System.out.println(y);}}