Why cant we define System.out.println() inside a class
directly?
Answer Posted / chandan
because a class is a logical structure and its definition is
group of entities but when we need some functionality we
need to define inside the function
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the string methods in java?
What is the difference between serial and throughput garbage collector?
How to obtain a performance profile of java program
What does a za z0 9 mean?
What is update method called?
Can a constructor be made final?
What is broken and continue statement?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
define the terminology association.
What will happen if static modifier is removed from the signature of the main method?
What is double word?
What is generic class?
What are the basic control structures?
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 a Transient Object?