Crazy programmers
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.
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..???
21/06/2017
Interview>Collection>q:Sorting without using defiend methods..🤣🤣🤣😆😆😆😆 Happy coding
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Website
Address
Delhi