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

What are thread priorities and importance of thread priorities in java?

0 Answers  


diffrence b\w println() and printf()

8 Answers   NIIT,


Is an object null?

0 Answers  


what is main difference between architecture,framework and design pattren

3 Answers  


What is oops in java?

0 Answers  






Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

1 Answers   Rolta, TCS,


Can we execute java program without main method?

0 Answers  


Does constructor be static?

0 Answers  


Why we use multi threading instead of multiprocessing?

0 Answers  


Is cout buffered?

0 Answers  


what is difference between class and object?

43 Answers   College School Exams Tests, HCL,


Explain how to force the garbage collection in java.

0 Answers  


Categories