Can we use synchronized block for primitives?
No Answer is Posted For this Question
Be the First to Post Answer
Does java allow default arguments?
Can an interface implement another interface?
Can you give few examples of final classes defined in java api?
Is vector synchronized in java?
Can you create an object of an abstract class?
What is the use of keywords in java?
What is the mapping mechanism used by java to identify IDL language?
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;
What is integer parseint?
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?
Differentiate jar and war files?
Can list be final in java?