Answer Posted / guest
constructor is special method with the class name and
without any return value.
whenever the object is created the constructor is called
automatically according to the argument passed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we store variables in local blocks?
What are the 8 data types in java?
Can a final variable be initialized in constructor?
How many bits is a char?
What does snprintf return?
Can you declare an interface method static?
How do you compare arrays in java?
Write a function to print Fibonacci series and Tribonacci series?
Write a program to print the pattern given below
What is the diffrence between inner class and nested class?
can I implement my own start() method? : Java thread
Can we pass null as argument in java?
Is it possible to override private or static method in java?
What is nested interface?
Which collections are thread safe in java?