Crazy programmers

Crazy programmers

Share

Hi Welcome to crazy programmer page, we are here to discuss about ideas ,innovation ,technology specially we talk about java j2ee , pls like ,comment and subscribe for more information and lets make a healthy discussions on coding.

20/11/2017

class Student{
int id;
String name;

Student getstudent(String stuid) {
System.out.println("get student started");

if(stuid.equals("343")){
return new Student();
}else{
try {
throw new Studentnotfoundexception("Student not found:"+stuid);
} catch (Studentnotfoundexception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
System.out.println("get student method");
return null;

}

}

public class Customexception {

public static void main(String args[]) {

Student s1=new Student();
try {
System.out.println("Going in try");
s1.getstudent("33");
} catch (ArithmeticException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("hello");
}
finally{
System.out.println("finally");
System.out.println();
}
System.out.println("Ajay");


}
}

Guess The correct Output..???

Photos from Crazy programmers's post 21/06/2017

Interview>Collection>q:Sorting without using defiend methods..🤣🤣🤣😆😆😆😆 Happy coding

Want your business to be the top-listed Computer & Electronics Service in Delhi?
Click here to claim your Sponsored Listing.

Telephone

Website

Address


Delhi