Variable declaration and initialisation varieties are explained here.
Double and float data type declaration its max value and sizing.
Different types of integer data types with its maximum and minimum value limits are explained with this code.
The java char data type and its possible values are explained here.
Reference data type for class object reference and array reference.
Mainly used kinds Local, Class and Instance Variables are discussed here.
Java class variables have default values. Let us experiment with that.
Methods to rightly use variable names when their names clash between class/static types and local types.
This is a program that will tell you about the scope of variables in different parts of programs.
Outputs the size of the eight primitive data types present in java.
Gives you understanding of declaration along with dynamic initialization
Product and Division to show data type compatibility difference.
Printing uppercase alphabets, lowercase alphabets, digits by printing them as characters typecasted from its integer form ascii values.
( As In Exam - ICSE2014 )
List the variables from those given below that are composite data types.
( As In Exam - ICSE2014 )
Name the primitive data type in Java that is:
(i) a 64-bit integer and
( As In Exam - ICSE2015 )
What are the default values of the primitive datatypes int and float?
( As In Exam - ICSE2015 )
Arrange the following primitive data types in an ascending order of their siz
( As In Exam - ICSE2018 )
Classify the following as primative or non-primative datatypes:
(i) cha
( As In Exam - ICSE2018 )
(1) int res = ‘A’;
What is the value of res?
(ii) Na
( As In Exam - ICSE2017 )
State the number of bytes occupied by char and int data types.
( As In Exam - ICSE2016 )
What are the types of casting shown by the following examples:
(i) char
( As In Exam - ICSE2016 )
Write one difference between primitive data types and composite data types.
( As In Exam - ICSE2017 )
Write the output:
char ch = ‘F’;
int m = ch;
m=
Write output of the following program which is based on summation of differen
Find output of following data type size determination instructions using wrap
Write a program to initialise a variable with price of an item as a fractiona
Why do we need to initialise local variables when we have default values spec
Why do we add f suffix to a decimal literal number when we initialise a float