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 do you understand by synchronization?

0 Answers  


What is variable in java?

0 Answers  


what is the final keyword denotes in java?

0 Answers   IBS,


What is the best definition for data?

0 Answers  


What is meant by nested loop?

0 Answers  


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

0 Answers  


Why do we create public static method in java?

0 Answers  


what is meant by abstract class?

0 Answers   Aspire,


Explain about complier design(phases)

0 Answers   Aditi Placement Service,


What is integer size in java?

0 Answers  


What happens if I remove static from main method?

0 Answers  


Why parsing is done?

0 Answers  


Categories