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 packages in java?

0 Answers  


What does n mean?

0 Answers  


What is a Presistent Object?

0 Answers   InfoAxon Technologies,


What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,


Explain the Propertie sof class?

0 Answers  






Explain the advantages of packages in java?

0 Answers  


Can you tell me range of byte?

0 Answers  


what is meaning of JIT?

4 Answers  


What are different type of exceptions in java?

0 Answers  


Write a code to show a static variable?

0 Answers  


To what value is a variable of the Boolean type automatically initialized?

3 Answers  


Can a abstract class be declared final?

0 Answers  


Categories