Jump to content

Recommended Posts

Posted

How will you write a JUnit case to handle following scenario. Will you handle checked or unchecked exception
- There are only 10 gates available at an Airport. Junit Scenario to handle if the Number of Planes are more than 10.


idoka interview question

Posted

[quote name='HAPPYNESS' timestamp='1371676103' post='1303871531']
Singleton Pattern ante enti

Dependency Injection

[color=#ff0000][size=5]Spring Web Services ni Debugging ela chestam[/size][/color]
[/quote]
:3D_Smiles:[size=4] [/size]

Posted

[quote name='HAPPYNESS' timestamp='1371677156' post='1303871621']
oho general ga real time lo ekkadekkada use chestam?
[/quote]

Connection pool is best example

Posted

[quote name='cherlapalli_jailer' timestamp='1371677164' post='1303871622']
[size=6][color=#282828][font=helvetica, arial, sans-serif][background=rgb(247, 247, 247)]Dependency Injection[/background][/font][/color][/size]
[color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]neenu kooda goolging seyyavalasinde[/background][/size][/font][/color]
[/quote]
spring related topic ekkado vinna sCo_^Y sCo_^Y sCo_^Y

Posted

[quote name='Chinni_' timestamp='1371677244' post='1303871634']
is also called IOC
sSa_j@il
[/quote]
areiii is also called IOC...transfering dependency from one bean to other ....ila kaadu naaku manchga scenario tho kavali

Posted

[quote name='HAPPYNESS' timestamp='1371677248' post='1303871635']
How will you write a JUnit case to handle following scenario. [size=6]Will you handle checked or unchecked exception[/size]
- There are only 10 gates available at an Airport. Junit Scenario to handle if the Number of Planes are more than 10.


idoka interview question
[/quote]
yes s%H# s%H#

Posted

[quote name='Chinni_' timestamp='1371677273' post='1303871639']
:3D_Smiles:
[/quote]
aa chupendira goootle ....

for example Web Service Response raledu anuko sareggaa..dannni ela debugging chestav ekkada chestav? Spring lo or DB connection failure ani ela telustundi

Posted

[quote name='biscuitraja' timestamp='1371677320' post='1303871643']
spring related topic ekkado vinna sCo_^Y sCo_^Y sCo_^Y
[/quote]
related kadhu springs based on this @~`[size=4] [/size]

Posted

[quote name='HAPPYNESS' timestamp='1371677347' post='1303871647']
areiii is also called IOC...transfering dependency from one bean to other ....ila kaadu naaku manchga scenario tho kavali
[/quote]
bean wiring chestha...

Posted

[quote name='HAPPYNESS' timestamp='1371677424' post='1303871649']
aa chupendira goootle ....

for example Web Service Response raledu anuko sareggaa..dannni ela debugging chestav ekkada chestav? Spring lo or DB connection failure ani ela telustundi
[/quote]
silent_I1[size=4] [/size]

Posted

[quote name='Chinni_' timestamp='1371677425' post='1303871650']
related kadhu springs based on this @~`
[/quote]
yes indaake choosa chaduvudam anukunna mood leka skip chesa :3D_Smiles_38: :3D_Smiles_38:

Posted

[quote name='Chinni_' timestamp='1371677483' post='1303871655']
bean wiring chestha...
[/quote]
M ki rubberband kattukuni laagukooo ....saregga raayi oka program Chrlapallii mayya rasinattu lekapote google nundi anna ettukura clear ga unna example [img]http://i.imgflip.com/1tu9a.gif[/img]

Posted

in 1 simple word HQL is based on Java Objects SQL is based on Relation DB tables.

[quote name='biscuitraja' timestamp='1371672338' post='1303871139']
hibernate query language gurichi cheppadi @~` @~`
[/quote]
[quote name='Sinnababu_Sillyfellow' timestamp='1371672389' post='1303871147']

SQL ni sagam chesthe... HQL....
[/quote]
[quote name='Sinnababu_Sillyfellow' timestamp='1371672592' post='1303871168']


SQL lo 'select * from TABLE_TEST' ani query raastaavu....
HQL lo 'from TABLE_TEST' ante saripotundhi...
high level lo inthe...
detailed gaa kaavaali ante... tutorials choodu....
[/quote]

Posted

[quote name='biscuitraja' timestamp='1371677543' post='1303871661']
yes indaake choosa chaduvudam anukunna mood leka skip chesa :3D_Smiles_38: :3D_Smiles_38:
[/quote]
haffy vuncle ni chusi nerchuko :3D_Smiles_153:[size=4] [/size]

Posted

[b] Applicability & Examples[/b]

[font=Verdana][size=3][background=rgb(217, 219, 210)]According to the definition the singleton pattern should be used when there must be exactly one instance of a class, and when it must be accessible to clients from a global access point. Here are some real situations where the singleton is used:[/background][/size][/font]
[b] Example 1 - Logger Classes[/b]
[font=Verdana][size=3][background=rgb(217, 219, 210)]
The Singleton pattern is used in the design of logger classes. This classes are ussualy implemented as a singletons, and provides a global logging access point in all the application components without being necessary to create an object each time a logging operations is performed.[/background][/size][/font]
[b] Example 2 - Configuration Classes[/b]
[font=Verdana][size=3][background=rgb(217, 219, 210)]
The Singleton pattern is used to design the classes which provides the configuration settings for an application. By implementing configuration classes as Singleton not only that we provide a global access point, but we also keep the instance we use as a cache object. When the class is instantiated( or when a value is read ) the singleton will keep the values in its internal structure. If the values are read from the database or from files this avoids the reloading the values each time the configuration parameters are used.[/background][/size][/font]

[b] Example 3 - Accesing resources in shared mode[/b]
[font=Verdana][size=3][background=rgb(217, 219, 210)]
It can be used in the design of an application that needs to work with the serial port. Let's say that there are many classes in the application, working in an multi-threading environment, which needs to operate actions on the serial port. In this case a singleton with synchronized methods could be used to be used to manage all the operations on the serial port.[/background][/size][/font]
[b] Example 4 - Factories implemented as Singletons[/b]
[font=Verdana][size=3][background=rgb(217, 219, 210)]
Let's assume that we design an application with a factory to generate new objects(Acount, Customer, Site, Address objects) with their ids, in an multithreading environment. If the factory is instantiated twice in 2 different threads then is possible to have 2 overlapping ids for 2 different objects. If we implement the Factory as a singleton we avoid this problem. Combining Abstract Factory or Factory Method and Singleton design patterns is a common practice.[/background][/size][/font]

×
×
  • Create New...