Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between through and throws?

Answers were Sorted based on User's Feedback



what is the difference between through and throws?..

Answer / mahesh

there is no such keyword in java(through).it is used in our regular language ...throws means it throws exception..it should written the method header part only...

Is This Answer Correct ?    13 Yes 2 No

what is the difference between through and throws?..

Answer / sharad

I think it's not through but throw. So the question is what is the difference between throw and throws?
Ans. Throw is used to through an exception and throws is used to declare in the method beginning that this method can throw an unchecked exception and which it does not handle.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Java J2EE AllOther Interview Questions

What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


what is jndi?

2 Answers  


my interviewer asked me what technical specification you used how to answer that question

0 Answers  


Should we create system software ( e.g operating system ) in java ?

0 Answers  


when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }

6 Answers   Cap Gemini, TCS,


What is difference between Application Server and Web Server?

1 Answers   Logica CMG, SCS,


What are the uses of the set interfaces in the java collections? : java collections

0 Answers  


Can any one tell me How to explain bank project desription in interview

3 Answers   Infosys, Wipro,


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


What is an Ioc pattern? There are assemblies in .net for establishing this task, Whats the special in Java /j2ee technologies about IOC

2 Answers  


wnet use DAO design in u r project?

1 Answers   Godrej,


Categories