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
How will you add panel to a frame?
How do you start a new line in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
How many bytes is a string?
Can we have static methods in an interface?
How will you call an Applet using Java Script Function?
What is the difference between import java.util.date and java .util?
What are the different types of java?
Write a java program to count the number of words present in a string?
How do you make an arraylist empty in java?
What is meant by class loader? How many types are there?
Is jdk required on each machine to run a java program?
What is the default value of float and double datatype in java?
What is lexicographically smallest string?
How do you use spaces in java?