what are class,constructor and primitive data types?

Answers were Sorted based on User's Feedback



what are class,constructor and primitive data types?..

Answer / janet

Class is a template for multiple objects with
similar features and it is a blue print for objects. it
defines a type of object according to the data the object
can hold and the operations the object can perform.
Constructor is a special kind of method that
determines how an object is initialized when created.
primitive data types are 8 types and they are:
byte,short,int,long,float,double,boolean,char.

Is This Answer Correct ?    6 Yes 0 No

what are class,constructor and primitive data types?..

Answer / ravikiran

class is a template for members and methods to be places
constructor is used to initialize the instance variables.
primitive datatypes are the memory holders for diffrent
type of data to hold

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Core Java Interview Questions

why we write public static void main (String args[]) in core java plz explain briefly??????????????????

3 Answers   HCL,


Is minecraft 1.15 out?

0 Answers  


How can you share data between two thread in Java?

0 Answers  


Which is bigger double or float?

0 Answers  


What is the immediate superclass of the Dialog class?

2 Answers  






What is the final class?

0 Answers  


when to use ArrayList and when to use HashMap in webApplication.

1 Answers  


What is the difference between hashset and treeset in java?

0 Answers  


How do you decide when to use arraylist and linkedlist?

0 Answers  


What does int argc char * argv [] mean?

0 Answers  


Explain java coding standards for methods?

0 Answers  


what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?

3 Answers  


Categories