what are class,constructor and primitive data types?
Answer Posted / 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 |
Post New Answer View All Answers
What invokes a thread's run() method in java programming?
What is the benefit of using enum to declare a constant?
What does the “static” keyword mean? Can you override private or static method in java?
Why java is considered dynamic?
Explain the importance of thread scheduler in java?
What is lossy conversion in java?
What is the statements?
How are multiple inheritances done in Java?
What are the features of junit?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What do you mean by thread safe?
Can we use static class instead of singleton?
What are controls and their different types in awt?
Can you declare a private method as static?
Do I need java on my computer?