Jump to content

Recommended Posts

Posted

[quote name='cherlapalli_jailer' timestamp='1378997742' post='1304238973']
point

#1 My guess is ur asking about catch section?

[b]if we don't throw the exception which was caught then that thread will not be closed[/b]
So we always have to throw the exception and bring the exception to start point ...there u catch and do the needful and close it

It is not right practice to catch Exception (without throwing)
[/quote]

Confused.... :3D_Smiles: more simple explanation please....

Posted

[quote name='SinnaBabu_ChiNaaBabu' timestamp='1378997881' post='1304238993']

Confused.... :3D_Smiles: more simple explanation please....
[/quote]


suppose
{
T1
T2
}
This is T2 This a thread runs on it own say for example..
and what ever that happens in the try is being used in another thread (T1)
now there is an exception ..


try{
}catch(Exception e){
System.out.println() ;
}

now if there is an error and in catch if u don't throw to parent thread ...

Nothing will happen ...but threads will be alive..

if u throw the exception then it reaches to main
{
T1
T2
} then u can close both as well inform the party why u couldn't not process.

mostly happens in multi threaded env.

Posted

[quote name='cherlapalli_jailer' timestamp='1378997459' post='1304238935']
what ur wants
[/quote]

which questions we can expect for UI developer role...

recent proj lo javascript, ajax used for front-end ani pettanu..but how to explain related to real-time pls help me...

common questions asked for HTML, JS, CSS plssss

Posted

[quote name='innovative' timestamp='1378925841' post='1304235558']

whats ur opinion on PdfBox lib ?

read cheyyalsina pdf file path gurinchi throw some knowledge re ...
do we need to have that file in the project folder ?
[/quote]
i used ItedxtPDF
but for ur question it may not be relevant

llet me tell what i did

I created a PDF using Itest then ..
i placed the file on the Same server( in fact it is NAS Server/file server tied to our app server for security reasons ) and saved a copy locally (for debug purpose)

and once i copied to the file i published the path in our web site for users to download /view ( the reason we did not copy to WEB Server is ...Those files are available for only logged in users not for public purpose

if it is for every one to view then we can place it in Web Server

Posted

Jailer mama, good attempt.
But I am thinking of this... not sure if it makes sense...
try catch is too much of boiler plate code.... I mean, catch block ni carefull gaa cheyyali.....
But, if you can write the method logic, by design by contract principle, you can avoid lot of exceptions...
Example, null pointer exception ... before performing an operation on the variable/object... check if the value/object is null....
etc...
So disadvantage is...too much of code and maintaining the same
I could be wrong, just my version....

Posted

[quote name='cherlapalli_jailer' timestamp='1378999272' post='1304239102']
i used ItedxtPDF
but for ur question it may not be relevant

llet me tell what i did

I created a PDF using Itest then ..
i placed the file on the Same server( in fact it is NAS Server/file server tied to our app server for security reasons ) and saved a copy locally (for debug purpose)

[color=#008000][b]and once i copied to the file i published the path in our web site for users to download /view[/b][/color] ( the reason we did not copy to WEB Server is ...Those files are available for only logged in users not for public purpose

if it is for every one to view then we can place it in Web Server
[/quote]

i got answer to my ques .. pdf file project root folder lo create avthundhi and also it is picking up right from there for PdfReader too.

At this point, i started working in my local .. so m not worrying abt server stuff ... but did not get that green line .. can you explain plz ..

Posted

[quote name='SinnaBabu_Chavatabbayi' timestamp='1379000181' post='1304239177']
Jailer mama, good attempt.
But I am thinking of this... not sure if it makes sense...
try catch is too much of boiler plate code.... I mean, catch block ni carefull gaa cheyyali.....
But, [color=#ff0000][b]if you can write the method logic, by design by contract principle, you can avoid lot of exceptions...[/b][/color]
Example, null pointer exception ... before performing an operation on the variable/object... check if the value/object is null....
etc...
So disadvantage is...too much of code and maintaining the same
I could be wrong, just my version....
[/quote]

Red : I prefer this way.

Posted

can any one please help me on this...

There are 3 components dropdownlist, input text and output text..
If the input is given either thru dropdownlist or i/p text, o/p text should be updated without using Managed beans in JSF...

evarina help cheyyara pls...

Posted

anybody here working on or want to work on side projects??
job work monotonous ayipothundhi....want to learn new technologies but books teesi chadive oopika ledhu...so ila emanna project medha work chesthunte emanna nerchukovachu ani..

Posted

Need answers for these interview questions.....

[b]1) How to use a single jsp on both web and mobile device without changing the logic at the action/controller class.[/b]
2) Use of struts.properties file in struts2
[b]3) What is the scope ‘default’ for the bean in struts2.[/b]
3) How to configure the tiles in Struts2.
4) What is the use of package and namespace in Struts2 xml.
5) How can a custom Interceptor can be implemented and configured.
7) How can I change the label on the jsp for internationalizaion. What are the Steps?
8) How to find a missing number in sequence.
9) System.exit in finally block.
[b]10) How to change the Data Source dynamically. Example, I have XML and Oracle, my application should get the data from both. [/b]
[b]11) What is responsive design[/b]
[b]12) What is the design pattern involved/or you use for Database Connection/Pool.[/b]

Posted

[quote name='SinnaBabu_Chavatabbayi' timestamp='1379690997' post='1304276105']
Need answers for these interview questions.....

[b]1) How to use a single jsp on both web and mobile device without changing the logic at the action/controller class.[/b]
2) Use of struts.properties file in struts2
[b]3) What is the scope ‘default’ for the bean in struts2.[/b]
3) How to configure the tiles in Struts2.
4) What is the use of package and namespace in Struts2 xml.
5) How can a custom Interceptor can be implemented and configured.
7) How can I change the label on the jsp for internationalizaion. What are the Steps?
8) How to find a missing number in sequence.
9) System.exit in finally block.
[b]10) How to change the Data Source dynamically. Example, I have XML and Oracle, my application should get the data from both. [/b]
[b]11) What is responsive design[/b]
[color=#ff0000][b]12) What is the design pattern involved/or you use for Database Connection/Pool.[/b][/color]
[/quote]
simple one first singleton pattern

×
×
  • Create New...