Computer Science, asked by salmankhanbarik, 9 months ago

Calculate the memory capacity of the following:-
(1) byte x=10;
(2) float a=1.2F;
(3) char ch=90;
(4) boolean b=true;
(5) String s="11:00a.m.";
(6) char ch[]=new char[100];
(7) class sample
{
int a;
double b;
public static void main(String args[])
{
sample s=new sample();
}
} Find the memory capacity of the object s
(8) int a[][]=new int[5][6];

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
0

html

head

1) byte x=10;

(2) float a=1.2F;

(3) char ch=90;

(4) boolean b=true;

(5) String s="11:00a.m.";

(6) char ch[]=new char[100];

(7) class sample

{

int a;

double b;

public static void main(String args[])

{

sample s=new sample();

}

} Find the memory capacity of the object s

(8) int a[][]=new int[5][6];

Similar questions