Answer Posted / nashiinformaticssolutions
The term final is a predefined word in Java that is used while declaring values to variables. When a value is declared using the final keyword, then the variable's value remains constant throughout the program's execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the main purpose of serialization in java?
What are 3 boolean operators?
What is java and its types?
What does substring mean?
What are static blocks and static initalizers in java ?
When throw keyword is used?
What’s the difference between constructors and other methods?
What is main function purpose?
What is treeset and treemap in java?
How do you clear a method in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
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?
What is regex in java?
What methodology can be employed to locate substrings inside a string?
What will happen if static modifier is removed from the signature of the main method?