what is finalmethod & final variable with example?
Answer Posted / dipesh
public final methodA(){
}
u can overirde final method & final variable can reassigned
another value & final varaiable value must be assingend at
the time of declaration
Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
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?
Why deletion in linkedlist is fast than arraylist?
What are constants?
What is the multi-catch block in java?
Is java platform independent?
Why do we need data serialization?
What are the advantages of arraylist over arrays?
When would you use a static class?
What is the tradeoff between using an unordered array versus an ordered array?
What is the main method java?
Can we have multiple classes in a single file?
Which variable is the independent variable?
What is run time allocation?
What is a class instance variable?
What is native method in java?