Take a=4import java.util.Scanner;public class Simple{int a;Scanner sc=new Scanner(system.in);void read(){System.out.println("Enter the value of a");a=sc.nextint();}void print(){System.out.println("value of a="+a);}public static void main(String args[ ]){HelloWorld h= new HelloWorld();h.read();}
Predict the output of the following code public class Equals{public static void main(String [] args){int x = 50double y = 50.1;boolean b = (x = y);System.out.println(b);}}
#includestdio.hint main(){printf("IndiaBIX");main();return 0;}
What is the output of the code?#includestdio.hint main(){printf ("%d\t",sizeof(10.5));printf ("%d\t",sizeof(34));printf ("%d\t",sizeof("A"));return 0;}