- 
                    
- 
                    What are the advantages of inheritance? (Select multiple)A) Reusability of codeB) accessibility of variables of the superclass by subclasses.C) Accessibility of methods of the superclass by subclasses.D) a,b are true 
- 
                    
- 
                    
- 
                    
- 
                    State true or false :- Can a double value be cast to a byte?A) TrueB) False 
- 
                    What are all the four states associated in the thread?A) newB) runnableC) blockedD) dead 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    How to Read text files sing JAVABy using InputFileReader Class 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    What is the difference between the File and RandomAccessFile classesThe File class encapsulates the files and directories of the local file system. TheRandomAccessFile class provides the methods needed to directly access data containedin any part of a file. 
- 
                    
Java Interview Questions

 
  
  
  
		
Ans