Welcome to Srini's blog

Friday, April 30, 2010

Simhaaaaa ...Lolll

Heyyyy !!! it seems 2 b Ballayya got hit after a long time .. I came 2 know tht SIMHA succeed in satisfying his fans as well as others. Anyway today I am going to SHIMA(If everything is ok in off) along with Sai and Sreekanth, will update review soon. After a big struggle(to book tkts) finally Sreekath booked tkts in UPPAL(ohh .... it is so far frm my room, atlease 1.30 hrs journy on bike) to see Balayya movie firstday(Otherwise popular scenses may cut :P).

Did u lost your CEEP original hall ticket??

Uhhhhh... why u r such a careless boy in this age?? don't worry you can get duplicate hall ticket without going to polytechnic college, But at least u need to go Internet center. You can get it in 2 ways.
1. If you have xerox copy of hall ticket, Go to Get Hall Ticket and Print and enter the ICR Number which is in your xerox.
2. If you don't have xerox of hall ticket , Go to Search Hall Ticket and Print and enter your details.

@@@@ ... If you are from a village background, ur parents will feel little bit tense abt this.Plz B careful next time onwards .... All the best.

Saturday, April 24, 2010

Last night I njoyed with Daarling

Oopssss ..... Last night we(sreekanth and myself) went to Darling movie. I think u mis understand me with my post title, Anyway we njoyed the movie, Its a love story with commedy track. Prabhas did a good job in this movie. Movie with a twist in first half, If u knew the twist before u will definitely feel 1st half is bored. U can njoy the second half. Prabhas's dressing style is somewt different frm past movies...

Tuesday, April 20, 2010

Have U ever heard about LPG gas cylinder's expiry date....!!

Do you know that there is an expiry date (physical life) for LPG cylinders? Expired Cylinders are not safe for use and may cause accidents. In this regard, please be cautious at the time of accepting any LPG cylinder from the vendor.

Here is how we can check the expiry of LPG cylinders:
On one of three side stems of the cylinder, the expiry date is coded alpha numerically as follows A or B or C or D and some two digit number following this e.g. D06.

The alphabets stand for quarters -
1. A for March (First Qtr),
2. B for June (Second Qtr),
3. C for Sept (Third Qtr),
4. D for December (Fourth Qtr).

The digits stand for the year till it is valid. Hence D06 would mean December qtr of 2006.
Please Return Back the Cylinder that you get with a Expiry Date, they are prone to Leak and other Hazardous accidents ...

The digits stand for the year till it is valid. Hence D06 would mean December qtr of 2006.
Please Return Back the Cylinder that you get with a Expiry Date, they are prone to Leak and other Hazardous accidents ...

Monday, April 19, 2010

Is it possible to prevent "finally" block execution ?? -- Java

finally creates a block of code that will be executed after a try/catch block has completed and before the code following the try/catch block. The finally block will execute whether or not an exception is thrown. If an exception is thrown, the finally block will execute even if no catch
statement matches the exception. Any time a method is about to return to the caller from inside a try/catch block, via an uncaught exception or an explicit return statement, the finally clause is also executed just before the method returns.

Now I will tell you an interesting thing about finally. Consider the case. I have a try, catch, finally blocks in my code and I have a requirement like finally block should be executes only if any exception raised otherwise it should not be executed. From the above if there is finally block in your code then it must be executed. How can i solve this ?
Ans : we can able to prevent the finally block execeution by using System.exit(0). see the example below.

try {
String s1 = "abc";
String s2 = "abc";
if(s1.equals(s2)) {
System.exit(0);
} else {
throw New Exception("Both Strings are equal);
}
} catch(Exception e) {
System.out.println(e.getMessage());
} finally {
System.out.println("Finally block executed");
}

Try this example with different strings you may get some idea.