types of data code example
Example 1: what are the data types
class Output {
public static void main(String args[])
int a = 1;
int b = 2;
int C;
int d;
C = ++b;
d = a++;
C++;
b++;
++a;
System.out.println(a + " " + b + " " + c);
}
}
Pick ONE option
324
323
234
Example 2: what are the data types
• number(num) - whole numbers up to num digits
• number(num,num2) - num whole numbers up to num2 decimals
• char(num) - fixed length character/string
• varchar2(num) - used for varying length data
• date - full date
• currency - used for prices