Answer Posted / hari krishna
All the classes including the abstract classes can have
constructors.Abstract class constructors will be called
when its concrete subclass will be instantiated.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of the finalize() method?
How can we find the actual size of an object on the heap?
What are the methods used to implement for the key object in the hash map?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Is java developer a good career?
Why does java not support pointers?
Difference between string s= new string (); and string s = "abv";?
What is yield () in java?
What is tcp and udp?
What is the difference between private & public & friendly classes?
What is the final access modifier in java?
Why is serialization required?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
which pattern is default in scanner package?
what is the use of bean managed and container managed with example?