Answer Posted / venkatesh
Constructor donot return any data.it is mainly used for
initialization i.e one time activity like database
connectiviy, constructors are automatically invoked when
created objects created.
Is This Answer Correct ? | 32 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of file class?
How do you calculate roots in java?
Can substring create new object?
Which collection is ordered in java?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is binary tree in java?
How to connect to a remote database using Applet?
Is set sorted in java?
What does nullpointerexception mean?
Explain all java features with real time examples
Write a function to find out longest palindrome in a given string?
Which is the best approach for creating thread ?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is ternary operator in java?
Is singleton a bad practice?