C and C++ has constructors and distructors, why does Java
does not have distructors?
Because java has automatic garbage collection feature and java
does not let you illegally or accidentally release memory
occupied by an object.
| Is This Answer Correct ? | 7 Yes | 1 No |
Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types
Is string is a data type in java?
Can private method static?
. Explain Java String Pool.
What modifiers are used with an inner class which is a member of an outerclass?
what is difference between requestprocessor and request dispatcher?
How do you declare an empty string?
What is super constructor?
What is numeric promotion?
What are the elements of java?
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?