You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Write a program to display Details of a data type
//import modules
importjava.awt.*;
importjavax.swing.*;
importjava.lang.*;
publicclassDataTypeDetails {
publicstaticvoidmain(String[] args) {
intx=-5;//5
System.out.println(Integer.toBinaryString(x));
//The java.lang.Integer.toBinaryString() method returns a string representation of the integer argument as an unsigned integer in base 2. It accepts an argument in Int data-type and returns the corresponding binary string.