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

JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu

9 Answers   Huawei,


Difference between ‘is-a’ and ‘has-a’ relationship in java?

0 Answers  


Can we use both this () and super () in a constructor?

0 Answers  


Explain java coding standards for methods?

0 Answers  


what are the different non-access specifiers in java?

5 Answers  


How are the elements of a gridbaglayout organized in java programming?

0 Answers  


What is the static import?

0 Answers  


What does exclamation mean in java?

0 Answers  


byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p?

7 Answers   NIIT, Wipro,


When will you define a method as static?

0 Answers  


What does math floor () do?

0 Answers  


What is the purpose of stub and skeleton?

0 Answers  


Categories