Answer Posted / hrindows@gmail.com
A class in Java is a blueprint that includes all your data. A class contains fields (variables) and methods to describe the behavior of an object. Let’s have a look at the syntax of a class.
class Abc {
member variables // class body
methods}
| Is This Answer Correct ? | 0 Yes | 0 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?
Does string isempty check for null?
How do you declare a destructor in java?
In how many ways we can create threads in java?
Can inner class have constructor?
Why java is considered dynamic?
How does predicate work in java?
What are static blocks and static initalizers in java ?
Is array a class?
Can you inherit from an abstract class java?
What is array sorting in java?
Is java se open source?
Define packages in java?
What is synchronization and why is it important in java programming?
Why is multiple inheritance not supported in java?