You are on page 1of 3

Core Java

1. why an interface and 1. 'll&part of associate-level (uestions not an abstract class? 2. elaborate the situation where you have 2. Can an interface have created a mar!up interface. an instance-level variable? 3. Why would you have a class implementing multiple interfaces ta!e an e"ample and elaborate# $. when would access modifier difference between an interface and implementing class would raise a compile-time error %. What&why mar!up interfaces?

1. )n what cases would you have a Class*ot+ound ,"ception at runtime? 2. -ifference between .ar&war&ear 3. /ow can one update .ust one modified class into a .ar? )n what cases would the updated .ar throw a runtime error? $. 'ccess modifier for accessing elements within a pac!age and outside.

1. 'll&part of the associate-level (uestions 2. tal! about a situation where classpath confliot was encountered. how was it resolved. 00000000000000000000000000000000000 00000000000000000000000000000000000 0000000000000000 3. type&role of classloaders? )ssues with classloaders

1. when to use inner 1. 'll&part of the associate-level (uestions classes? What1s their scope? 2. real-life scenario where inner classes were used this should be covered by this should be covered by response to the response to the 22-case 22-case (uestion itself (uestion itself 1. e"plain how 34) wor!s. /ow to ma!e a class remote5 stubs&s!eleton generation 2. what happens when a remote call results in an e"ception 3. why&what&how seriali6ation? /ow to prevent some members from getting seriali6ed? $. cloning7 deep v&s shallow cloning? %. when you write a nonseriali6ed ob.ect to a file5 do you get a compile-time 1. 'll&part of the associate-level (uestions 2. /ow to ma!e 34) secured? 3. concurrency challenges with 34)? 00000000000000000000000000000000000 00000000000000000000000000000000000 000000000000000 $. garbage collection of remote ob.ects? )ssues&challenges? %. how do we ensure that 34) 3egistry is up all the time? 8. /ow can ) ma!e outgoing 34) calls through a local firewall? /99:9unnelling5 ;2C<;5 -ownloaded soc!et factories#

v&s runtime e"ception?

1. do we need to synchroni6e a static method to prevent concurrent access? 2. different ways of preventing concurrent access. 3. does using syncroni6e on one of the instancelevel methods prevent concurrent access to other methods of the class too? $. different ways of creating a thread %. tal! about the tric!iest bug encountered with multi-threading and its resolution 8. do we need to synchroni6e getters and setters both to prevent concurrency issues on a collection? =. difference between wait #5 sleep # 1. does finali6e release the memory? -oes system.gc # do it? 2. )f ) have too many ob.ects being created and used5 should ) increase head or stac! si6e? 3. 1. new features in 1.% 2. usage of generics5 annotations 1. if e"ception ' is raised within a function and e"ception @ is raised in finally bloc! of that function5 which e"ception will get eventually raised in the calling method? 1. J-@C drivers5 which is (uic!est and why? 2. can we perform a batch of transactions in one go? /ow? 3. when to put logic in business layer against stored proc. 'nd viceversa $. problems faced with

1. all&part of associate-level (uestions 2. what is a deadloc! situation5 how to debug and fi"? how to interpret a threaddump 3. >ive a real-life situation where deadloc! situation was encountered and resolved $. Would adding multi-threading to the sort algorithm improve performance? %. inter-thread communication 8. how would you ensure thread priority? =. in what cases multi-threading actually improves performance? )n what cases it won1t be all that useful? 00000000000000000000000000000000000 00000000000000000000000000000000000 000000000000000 ?. :rocess@uilder v&s thread? /ow many 2; processes get spawned when an application is multi-threaded?

1. 9al! about one of the memory-related issue encounted5 and its resolution 2. ma". memory that a .ava process can use

1. new features in 1.% 2. usage of generics5 annotations

1. what would lead an e"ception to be overridden? 2. difference between error5 e"ception and throwable 3. how to decide between chec!ed and unchec!ed e"ceptions? 1. all&part of associate-level (uestions 2. how to improve performance w.r.t. -@ interaction? What is the biggest bottlenec! normally? A-@ connection poolingB

J-@C. 2pen -@ sessions? %. does -@ connection remain open in case of ;CD e"ception or any other e"ception 1. JE*)9s 7 advantages? 2. different types of asserts used? 3. should you write JE*)9s before actual code or after the code? 1. all&part of associate-level (uestions 2. what1s better? Junits as inner classes or otherwise? why? 3. !ey things to loo! for in the .units to (ualify whether it is good .unit or not $. from your e"perience what is normally the effort ratio between JE*)9 and actual code %. can JE*)9s be used for integration testing? is that preferable

You might also like