- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    Which of the following methods are methods of the Math class?A) absolute( )B) log( )C) cosine( )D) sine( ) 
- 
                    Java is Not designed for the distributed environment of the InternetA) TrueB) FalseExplanation: Java is designed for the distributed environment of the Internet, because it handles TCP/IP protocols. 
- 
                    
- 
                    Which of the following will change to the next directory above the current directory?Skill/Topic: AWT & AppletsA) chDir("..");B) cd(".");C) up();D) none of the above 
- 
                    ‘super’ is a Java ____wordSkill/Topic: AWT & AppletsA) key 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    }
 }
 public class B{
 public static void main(String args[])
 {
 A a=new A();
 System.out.println(a.meth1());
 }
 }
 The above code gives a compile error.It says cannot use void.If the return type is not void then it compiles sucessfully
 what could be the reason?">Class A{public static void meth1(){System.out.println("Inside method 1");}}public class B{public static void main(String args[]){A a=new A();System.out.println(a.meth1());}}The above code gives a compile error.It says cannot use void.If the return type is not void then it compiles sucessfullywhat could be the reason?
Java Interview Questions

 
  
  
  
		
Ans