Java Interview Question CMP
Java Interview Question CMP
what is inter ace and give brie description? !.what is abstract class and give brie description? ".di erence between inter ace and abstract class? #.what are the t$pes o primitive data ? %.what is value& '(? ).what method is used to convert rom string to wrapper? *.what method is used to convert rom string to primitives? 1+.what method is used to convert rom wrapper to primitives? 11.di erence between parameters and arguments? 12.what is constructor and its role?,,please read care ull$ -lease visit developers boo..com or the below questions.
2!. 2hat is the di erence throw and throws? 2". 7ow to create custom e0ceptions? 2#. 2hat are the di erent wa$s to handle e0ceptions?
1. 2hat is string? 2. Is 8tring a mutable class and wh$? 3. charAt'(> !. di erence between length and length'(? ". <i erence between ?? and equals method? #. <i erence between 8tring9 8tring=u er and 8tring=uilder? %. :ength'(? ). 4oncatenate'(? *. 5eplace'(: 1+. Append'(? 11. 8ubstring'(?
4ommon 1uestions:
1. 2hat is s$nchroni@ation? 2. 2hat is seriali@ation? 3. 2hat is mar.er inter ace? !. A$pes o mar.er inter ace? ". 2hat are the two wa$s to implement thread? #. 2hat is $ield9 wait9 sleep9 noti $9 noti $all? %. -lease read the li ec$cle o threads? ). 2hat is wrapper class? *. 2hat is oops concept? 1+. 2hat are the t$pes o oops concept? 11. Is inal class can be e0tended? 12. Is inal method can overridden? 13. Is inal variable can be reinitiali@ed? 1!. 2hat is autobo0ing?
1". 2hat is upcasting and what downcasting? 5ead access speci ier and access modi ier? A$pes o .e$word in java? 2hat is abstraction? 2hat is inheritance? 2hat is encapsulation? 2hat is pol$morphism? 2hat are the t$pes o pol$morphism? Bo and read interview questions in rose india.com and developers boo..com