
specify the most suitable data type in java to declare following?
a)number of products of type x
b)credit limit of a customer
c)age of the customer
d)name of a product
e)is credit limit exceeded
f)no of subjects in the course
g)name of the lecturer
h)average mark for a subject in a class
i)salary of the employee

a)number of products of type x- int
b)credit limit of a customer- long
c)age of the customer- int
d)name of a product- String
e)is credit limit exceeded- boolean
f)no of subjects in the course- int
g)name of the lecturer- String
h)average mark for a subject in a class- int
i)salary of the employee- long
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.