Answer Posted / mahesh
constructor is similar to a method.
*constructor name ,class name should be same
*constructor have a parameters
*does not return any value
*
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is java and its types?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the difference between access specifiers and access modifiers in java?
What are the restrictions that are applied to the java static methods?
What is use of inner class in java?
Define packages in java?
What is a string what operation can be performed out with the help of a string?
What is merge sort in java?
worst case complexities of Quick sort and Merge sort.
How to compare strings in java?
What is bubble sort in java?
What are the differences between throw and throws?
Explain the concept of proper inheritance?
How do you ensure that n threads can access n resources without deadlock?
Tell us something about different types of casting?