Select chapter



basics (7.papers)
constructors (1.papers)
packages (1.papers)
inheritance (7.papers)
misc (3.papers)
exceptions (5.papers)
threads (4.papers)
overloading (1.papers)
jsp (3.papers)
servlets (9.papers)
jdbc (2.papers)
util (1.papers)
xml (2.papers)
IO stream (3.papers)
Hide

Sponsored Links


  

java interview questions and answers

Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
6
What will happen if you compile and run this program?

package com.techpalle.skillgun;
public class Test{
 public static void main(String[] args){
  System.out.println(disp());
 }
 static boolean disp(){
  try{
   return true;
  }finally {
   return false;
  }
 }
}
  1. The program does not compile
  2. The program compiles and always returns true
  3. The program complies and always returns false
  4. The program compiles and returns true in this context 
Show Answer
Share Facebook gmail Twitter
Read more papers :