tag:blogger.com,1999:blog-28348368884901795982024-03-05T20:24:30.173+05:30Our LearningsTo share our daily learning's with U & Just share Ur learning's with us. Read More and Learn More.Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-2834836888490179598.post-13466216994323332752019-10-10T10:10:00.002+05:302019-10-10T10:11:16.696+05:30500 Years Calendar download<div style="text-align: center;">
<b><i><span style="color: purple; font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif; font-size: x-large;">500 Years Calendar</span></i></b></div>
<div style="text-align: center;">
<b><i><span style="color: purple; font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif; font-size: x-large;"><br /></span></i></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJDdCZGr53yNNtWOdQ-tHtVv3cNDtUT4fJkv8he4iZ1c_YJG0GGZglku5uxeJTvVrG1pEE_lLf5va3FDE1_X4rSaeoteZUARrwIB6TJbK0t3xuJ-cx8piNleEOBy9buIdPeoQbxMjhe__/s1600/500+Years+Calendar.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1039" data-original-width="1600" height="415" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJDdCZGr53yNNtWOdQ-tHtVv3cNDtUT4fJkv8he4iZ1c_YJG0GGZglku5uxeJTvVrG1pEE_lLf5va3FDE1_X4rSaeoteZUARrwIB6TJbK0t3xuJ-cx8piNleEOBy9buIdPeoQbxMjhe__/s640/500+Years+Calendar.jpg" width="640" /></a></div>
<div style="text-align: center;">
<b><i><span style="color: purple; font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif; font-size: x-large;"><br /></span></i></b></div>
Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-15788963031240143122015-03-07T14:39:00.001+05:302015-03-07T14:39:26.125+05:30South India 10 days trip - Great temples<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div></div></div></div></div></div></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px">Guys..</span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px"><br></span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px">Visit the famous temples mentioned below. Given as a route map where you can follow the same.</span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px"><br></span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px">Start from Bangalore.. you can change based on your location.</span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px"><br></span></font></div><div class="gmail_quote"><font color="#333333" face="proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif"><span style="font-size:14px;line-height:18.2000007629395px">Cover Tamil Nadu and Andhra Pradesh more... Temples<br></span></font><div dir="ltr"><div><div><br></div><div>Start: Bangalore<br></div><div> 1) Melukote ( Cheluva narayana swami, narasimha swami) - <a href="http://en.wikipedia.org/wiki/Melukote" target="_blank">http://en.wikipedia.org/wiki/Melukote</a></div><div> 2) Sri Rangapatna (Ranganatha swami) - <a href="http://en.wikipedia.org/wiki/Srirangapatna" target="_blank">http://en.wikipedia.org/wiki/Srirangapatna</a></div><div> 3) Sri Rangapatna (Nimishamba temple) - <a href="http://en.wikipedia.org/wiki/Nimishambha" target="_blank">http://en.wikipedia.org/wiki/Nimishambha</a></div><div> 4) Mysore (Chamundi hills, Mysore Palace) - <a href="http://en.wikipedia.org/wiki/Mysore" target="_blank">http://en.wikipedia.org/wiki/Mysore</a></div><div> 5) After mysore 5kms Datta Peetam ( Dattatreya temple) - <a href="http://www.dattapeetham.com/" target="_blank">http://www.dattapeetham.com/</a> <a href="http://en.wikipedia.org/wiki/Ganapathi_Sachchidananda" target="_blank">http://en.wikipedia.org/wiki/Ganapathi_Sachchidananda</a></div><div> 6) Nanjangud (Lord shiva temple) - <a href="http://en.wikipedia.org/wiki/Nanjangud" target="_blank">http://en.wikipedia.org/wiki/Nanjangud</a></div><div> 7) Vengopala swamy temple - <a href="http://en.wikipedia.org/wiki/Himavad_Gopalaswamy_Betta" target="_blank">http://en.wikipedia.org/wiki/Himavad_Gopalaswamy_Betta</a></div><div> 8) Bandipur national forest - <a href="http://en.wikipedia.org/wiki/Bandipur_National_Park" target="_blank">http://en.wikipedia.org/wiki/Bandipur_National_Park</a></div><div> 9) Ooty (doddabetta, park, climate ) - <a href="http://en.wikipedia.org/wiki/Udhagamandalam" target="_blank">http://en.wikipedia.org/wiki/Udhagamandalam</a></div><div> 10) Guruvayoor (Lord Krishna Temple and Shiva temple) - <a href="http://en.wikipedia.org/wiki/Guruvayur" target="_blank">http://en.wikipedia.org/wiki/Guruvayur</a></div><div> <a href="https://www.google.co.in/maps/dir/Bengaluru,+Karnataka/Melukote+Cheluvarayaswamy+Temple,+Melukote,+Karnataka/Sri+Ranganathaswamy+Temple,+Srirangapatna,+Karnataka/Nimishamba,+Srirangapatna,+Karnataka/Mysore,+Karnataka/Nanjangud,+Karnataka/Himavad+Gopalaswamy+Hills+Rd,+Sri+Hangala,+Karnataka+571126/Bandipur+National+Park,+Mysuru,+Karnataka/Ooty,+Tamil+Nadu/Guruvayoor,+Kerala/@11.8463656,75.6350386,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0!2m2!1d77.5945627!2d12.9715987!1m5!1m1!1s0x3baf9004a4f71985:0x6545f5e47c813e14!2m2!1d76.647588!2d12.660288!1m5!1m1!1s0x3baf77070f7b1b0f:0xab35be62cadfe767!2m2!1d76.679249!2d12.424884!1m5!1m1!1s0x3baf768d3561c657:0x137675ab70a94aa7!2m2!1d76.710668!2d12.418754!1m5!1m1!1s0x3baf7010988f73e5:0x7b92fb661b13ee09!2m2!1d76.3637285!2d12.1873152!1m5!1m1!1s0x3baf682bfe1f29eb:0xd1e5927b3c8e5f8!2m2!1d76.680093!2d12.1199769!1m5!1m1!1s0x3ba8b2a757c9da1f:0x735e4c4bcd5c4f9e!2m2!1d76.6463081!2d11.7448446!1m5!1m1!1s0x3ba8aaa8dde6363b:0x120624bbcf55937b!2m2!1d76.631913!2d11.667945!1m5!1m1!1s0x3ba8bd84b5f3d78d:0x179bdb14c93e3f42!2m2!1d76.7!2d11.41!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!3e0?hl=en" target="_blank">https://www.google.co.in/maps/dir/Bengaluru,+Karnataka/Melukote+Cheluvarayaswamy+Temple,+Melukote,+Karnataka/Sri+Ranganathaswamy+Temple,+Srirangapatna,+Karnataka/Nimishamba,+Srirangapatna,+Karnataka/Mysore,+Karnataka/Nanjangud,+Karnataka/Himavad+Gopalaswamy+Hills+Rd,+Sri+Hangala,+Karnataka+571126/Bandipur+National+Park,+Mysuru,+Karnataka/Ooty,+Tamil+Nadu/Guruvayoor,+Kerala/@11.8463656,75.6350386,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0!2m2!1d77.5945627!2d12.9715987!1m5!1m1!1s0x3baf9004a4f71985:0x6545f5e47c813e14!2m2!1d76.647588!2d12.660288!1m5!1m1!1s0x3baf77070f7b1b0f:0xab35be62cadfe767!2m2!1d76.679249!2d12.424884!1m5!1m1!1s0x3baf768d3561c657:0x137675ab70a94aa7!2m2!1d76.710668!2d12.418754!1m5!1m1!1s0x3baf7010988f73e5:0x7b92fb661b13ee09!2m2!1d76.3637285!2d12.1873152!1m5!1m1!1s0x3baf682bfe1f29eb:0xd1e5927b3c8e5f8!2m2!1d76.680093!2d12.1199769!1m5!1m1!1s0x3ba8b2a757c9da1f:0x735e4c4bcd5c4f9e!2m2!1d76.6463081!2d11.7448446!1m5!1m1!1s0x3ba8aaa8dde6363b:0x120624bbcf55937b!2m2!1d76.631913!2d11.667945!1m5!1m1!1s0x3ba8bd84b5f3d78d:0x179bdb14c93e3f42!2m2!1d76.7!2d11.41!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!3e0?hl=en</a></div><div> </div><div> 11) Kochi (Optional) - <a href="http://en.wikipedia.org/wiki/Kochi" target="_blank">http://en.wikipedia.org/wiki/Kochi</a></div><div> 12) Trivendram (Anantha Padmanabhsyamy Temple and kovalam beach) - <a href="http://en.wikipedia.org/wiki/Thiruvananthapuram" target="_blank">http://en.wikipedia.org/wiki/Thiruvananthapuram</a></div><div> 13) Suchindram (Big Anjaneya temple) - <a href="http://en.wikipedia.org/wiki/Suchindram" target="_blank">http://en.wikipedia.org/wiki/Suchindram</a></div><div> 14) Kanya kumari (Amman temple - sun rise view and Boating to Vivekananda rock) - <a href="http://en.wikipedia.org/wiki/Kanyakumari" target="_blank">http://en.wikipedia.org/wiki/Kanyakumari</a></div><div> 15) Tiruchendur ( Lord subramanya swamy (Kumara swamy) temple) - <a href="http://en.wikipedia.org/wiki/Thiruchendur" target="_blank">http://en.wikipedia.org/wiki/Thiruchendur</a></div><div> 16) Kovilpatti (Big ganapathi temple) - <a href="http://en.wikipedia.org/wiki/Kovilpatti" target="_blank">http://en.wikipedia.org/wiki/Kovilpatti</a></div><div> 17) Srivilliputtur (Andal Amman temple (Maha lakshmi) birth place) - <a href="http://en.wikipedia.org/wiki/Srivilliputhur" target="_blank">http://en.wikipedia.org/wiki/Srivilliputhur</a></div><div> 18) Rameshwaram (Lord Shiva temple - worshipped by lord rama and lord rama sea bath) - <a href="http://en.wikipedia.org/wiki/Rameswaram" target="_blank">http://en.wikipedia.org/wiki/Rameswaram</a></div><div> 19) Madurai ( Meenakshi amman temple) - <a href="http://en.wikipedia.org/wiki/Madurai" target="_blank">http://en.wikipedia.org/wiki/Madurai</a></div><div> <a href="https://www.google.co.in/maps/dir/Guruvayoor,+Kerala/Trivandrum,+Kerala/Suchindram,+Tamil+Nadu/Kanyakumari,+Tamil+Nadu/Thiruchendur,+Tamil+Nadu/Kovilpatti,+Tamil+Nadu/Srivilliputhur,+Tamil+Nadu/Rameswaram,+Tamil+Nadu/Madurai,+Tamil+Nadu/Palani,+Tamil+Nadu/@9.3418568,76.4855903,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!1m5!1m1!1s0x3b05bbb805bbcd47:0x15439fab5c5c81cb!2m2!1d76.9366376!2d8.5241391!1m5!1m1!1s0x3b04f181ad3eabdf:0x4dc8897d102ae0d0!2m2!1d77.465!2d8.155!1m5!1m1!1s0x3b04ed3d2a087861:0x1e790e896aeffaa0!2m2!1d77.5384507!2d8.0883064!1m5!1m1!1s0x3b0390118f119e01:0xb9bc989564965383!2m2!1d78.1250848!2d8.4963081!1m5!1m1!1s0x3b06b26570998f29:0xd95cda8fab23619b!2m2!1d77.87!2d9.17!1m5!1m1!1s0x3b06dcb7c2dc05ed:0x85ab3be7b79f6af2!2m2!1d77.6340859!2d9.5121365!1m5!1m1!1s0x3b01e3c4e61cf2b3:0xd667f9b98bbd63a1!2m2!1d79.3129291!2d9.2876254!1m5!1m1!1s0x3b00c582b1189633:0xdc955b7264f63933!2m2!1d78.1197754!2d9.9252007!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!3e0?hl=en" target="_blank">https://www.google.co.in/maps/dir/Guruvayoor,+Kerala/Trivandrum,+Kerala/Suchindram,+Tamil+Nadu/Kanyakumari,+Tamil+Nadu/Thiruchendur,+Tamil+Nadu/Kovilpatti,+Tamil+Nadu/Srivilliputhur,+Tamil+Nadu/Rameswaram,+Tamil+Nadu/Madurai,+Tamil+Nadu/Palani,+Tamil+Nadu/@9.3418568,76.4855903,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!1m5!1m1!1s0x3b05bbb805bbcd47:0x15439fab5c5c81cb!2m2!1d76.9366376!2d8.5241391!1m5!1m1!1s0x3b04f181ad3eabdf:0x4dc8897d102ae0d0!2m2!1d77.465!2d8.155!1m5!1m1!1s0x3b04ed3d2a087861:0x1e790e896aeffaa0!2m2!1d77.5384507!2d8.0883064!1m5!1m1!1s0x3b0390118f119e01:0xb9bc989564965383!2m2!1d78.1250848!2d8.4963081!1m5!1m1!1s0x3b06b26570998f29:0xd95cda8fab23619b!2m2!1d77.87!2d9.17!1m5!1m1!1s0x3b06dcb7c2dc05ed:0x85ab3be7b79f6af2!2m2!1d77.6340859!2d9.5121365!1m5!1m1!1s0x3b01e3c4e61cf2b3:0xd667f9b98bbd63a1!2m2!1d79.3129291!2d9.2876254!1m5!1m1!1s0x3b00c582b1189633:0xdc955b7264f63933!2m2!1d78.1197754!2d9.9252007!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!3e0?hl=en</a></div><div> </div><div> 20) Palani (Lord subramanya swamy temple) - <a href="http://en.wikipedia.org/wiki/Palani" target="_blank">http://en.wikipedia.org/wiki/Palani</a></div><div> 21) Srirangam (Lord vishna - ranganatha swamy big temple) - <a href="http://en.wikipedia.org/wiki/Srirangam" target="_blank">http://en.wikipedia.org/wiki/Srirangam</a></div><div> 22) Thiruvanaikovil (Jambukeswaram - Lord shiva in water - Jala linga) - <a href="http://en.wikipedia.org/wiki/Jambukeswarar_Temple,_Thiruvanaikaval" target="_blank">http://en.wikipedia.org/wiki/Jambukeswarar_Temple,_Thiruvanaikaval</a></div><div> 23) Tiruchy (Uchi pillayar temple on hill) - <a href="http://en.wikipedia.org/wiki/Tiruchirappalli" target="_blank">http://en.wikipedia.org/wiki/Tiruchirappalli</a></div><div> 24) Thanjavur ( Big shiva temple - Main entrance monumental tower's shadow will not appear at any time) - <a href="http://en.wikipedia.org/wiki/Thanjavur" target="_blank">http://en.wikipedia.org/wiki/Thanjavur</a></div><div> 25) Kumbakonam (Lord shiva and other 4 temples) - <a href="http://en.wikipedia.org/wiki/Kumbakonam" target="_blank">http://en.wikipedia.org/wiki/Kumbakonam</a></div><div> 26) Thirunageswaram (Lord Rahu Temple) - <a href="http://en.wikipedia.org/wiki/Thirunageswaram" target="_blank">http://en.wikipedia.org/wiki/Thirunageswaram</a></div><div> 27) Oppiliappan (Lord maha vishu and prahlad - food offered without salt to god) - <a href="http://en.wikipedia.org/wiki/Uppiliappan_Temple" target="_blank">http://en.wikipedia.org/wiki/Uppiliappan_Temple</a></div><div> 28) Nachiyar Koil (Lord Maha vishnu with garuda vahana) - <a href="http://en.wikipedia.org/wiki/Nachiyar_Koil" target="_blank">http://en.wikipedia.org/wiki/Nachiyar_Koil</a></div><div> 29) Koothanur (Lord Saraswathi temple) - <a href="http://en.wikipedia.org/wiki/Koothanur" target="_blank">http://en.wikipedia.org/wiki/Koothanur</a></div><div> 30) Tirunallar (Lord seneswara planet temple) - <a href="http://en.wikipedia.org/wiki/Thirunallar" target="_blank">http://en.wikipedia.org/wiki/Thirunallar</a></div><div> 31) Mayiladuthurai (Lord shiva) - <a href="http://en.wikipedia.org/wiki/Mayiladuthurai" target="_blank">http://en.wikipedia.org/wiki/Mayiladuthurai</a></div><div> 32) sirkazhi (Lord parvathi devi - Milk given to poet) - <a href="http://en.wikipedia.org/wiki/Sirkazhi" target="_blank">http://en.wikipedia.org/wiki/Sirkazhi</a></div><div> 33) Chidambaram (Akasa linga) - <a href="http://en.wikipedia.org/wiki/Chidambaram" target="_blank">http://en.wikipedia.org/wiki/Chidambaram</a></div><div> <a href="https://www.google.co.in/maps/dir/Palani,+Tamil+Nadu/Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thiruvanaikovil+Jambukeswarar+Akilandeswari+Temple,+Single+Street,+Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thanjavur,+Tamil+Nadu/Kumbakonam,+Tamil+Nadu/Thirunallar,+Puducherry/Mayiladuthurai,+Tamil+Nadu/Sirkazhi,+Tamil+Nadu/Chidambaram,+Tamil+Nadu/Thiruvannammalai,+Tamil+Nadu/@12.4763253,77.2993263,8z/data=!4m62!4m61!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!1m5!1m1!1s0x3baaf5d38807dbd3:0x6fc3d1a428e19458!2m2!1d78.6965972!2d10.8560297!1m5!1m1!1s0x3baaf42daec2b661:0x17fb7103d4fdb225!2m2!1d78.705457!2d10.853232!1m5!1m1!1s0x3baab89cea453039:0xe113da9b1f632be6!2m2!1d79.1378274!2d10.7869994!1m5!1m1!1s0x3a5532b360353419:0x9ecb5d94413ad35!2m2!1d79.3881132!2d10.9616945!1m5!1m1!1s0x3a5516f7ab3be1db:0x92ef1e1bb6f4746d!2m2!1d79.791667!2d10.925556!1m5!1m1!1s0x3a5526c731f25c21:0x4339eccad0b5866a!2m2!1d79.6522218!2d11.1018399!1m5!1m1!1s0x3a54de1af2991ed9:0x13e9ce3a26f66c3b!2m2!1d79.7361217!2d11.2390878!1m5!1m1!1s0x3a54c23aa1bce10b:0xe1a29e91a8ec81aa!2m2!1d79.6953594!2d11.3981936!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!3e0?hl=en" target="_blank">https://www.google.co.in/maps/dir/Palani,+Tamil+Nadu/Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thiruvanaikovil+Jambukeswarar+Akilandeswari+Temple,+Single+Street,+Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thanjavur,+Tamil+Nadu/Kumbakonam,+Tamil+Nadu/Thirunallar,+Puducherry/Mayiladuthurai,+Tamil+Nadu/Sirkazhi,+Tamil+Nadu/Chidambaram,+Tamil+Nadu/Thiruvannammalai,+Tamil+Nadu/@12.4763253,77.2993263,8z/data=!4m62!4m61!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!1m5!1m1!1s0x3baaf5d38807dbd3:0x6fc3d1a428e19458!2m2!1d78.6965972!2d10.8560297!1m5!1m1!1s0x3baaf42daec2b661:0x17fb7103d4fdb225!2m2!1d78.705457!2d10.853232!1m5!1m1!1s0x3baab89cea453039:0xe113da9b1f632be6!2m2!1d79.1378274!2d10.7869994!1m5!1m1!1s0x3a5532b360353419:0x9ecb5d94413ad35!2m2!1d79.3881132!2d10.9616945!1m5!1m1!1s0x3a5516f7ab3be1db:0x92ef1e1bb6f4746d!2m2!1d79.791667!2d10.925556!1m5!1m1!1s0x3a5526c731f25c21:0x4339eccad0b5866a!2m2!1d79.6522218!2d11.1018399!1m5!1m1!1s0x3a54de1af2991ed9:0x13e9ce3a26f66c3b!2m2!1d79.7361217!2d11.2390878!1m5!1m1!1s0x3a54c23aa1bce10b:0xe1a29e91a8ec81aa!2m2!1d79.6953594!2d11.3981936!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!3e0?hl=en</a></div><div> </div><div> 34) Thiruvannamalai (Lord shiva as agni linga and as mountain) - <a href="http://en.wikipedia.org/wiki/Tiruvannamalai" target="_blank">http://en.wikipedia.org/wiki/Tiruvannamalai</a></div><div> 35) Thennangur (Lord panduranga swami temple) - <a href="http://en.wikipedia.org/wiki/Thennangur" target="_blank">http://en.wikipedia.org/wiki/Thennangur</a></div><div> 36) KanchiPuram (Lord kamakshi amman, ulagananda perumal (Vamana Avatara), Lord ekambareswar (shiva) , Lord varadarajaswamy temple)</div><div><span style="white-space:pre-wrap"> </span>- <a href="http://en.wikipedia.org/wiki/Kanchipuram" target="_blank">http://en.wikipedia.org/wiki/Kanchipuram</a></div><div> 37) Thiruttani (Lord subramanya swamy temple) - <a href="http://en.wikipedia.org/wiki/Thiruttani" target="_blank">http://en.wikipedia.org/wiki/Thiruttani</a></div><div> 38) Nagalapuram ( Lord venkateswara) - <a href="http://en.wikipedia.org/wiki/Nagalapuram" target="_blank">http://en.wikipedia.org/wiki/Nagalapuram</a></div><div> 39) Sri kalahastri (Lord shiva - Vayu(air) linga) - <a href="http://en.wikipedia.org/wiki/Srikalahasti" target="_blank">http://en.wikipedia.org/wiki/Srikalahasti</a></div><div> 40) Tirupati (Tirumala - Lord venkateswara) and In Tirupati (Govindaraja swamy temple, kodanda rama swamy temple, kapila teethram (shiva) , iskon temple)</div><div><span style="white-space:pre-wrap"> </span>-<a href="http://en.wikipedia.org/wiki/Tirupati,_Andhra_Pradesh" target="_blank">http://en.wikipedia.org/wiki/Tirupati,_Andhra_Pradesh</a> - <a href="http://en.wikipedia.org/wiki/Tirumala" target="_blank">http://en.wikipedia.org/wiki/Tirumala</a></div><div> 41) Tiruchanur (Padmavathi amman(devi) temple - wife of lord venkateswara) - <a href="http://en.wikipedia.org/wiki/Tiruchanur" target="_blank">http://en.wikipedia.org/wiki/Tiruchanur</a></div><div> 41) Kanipakam ( Lord ganapathi temple) - <a href="http://en.wikipedia.org/wiki/Kanipakam" target="_blank">http://en.wikipedia.org/wiki/Kanipakam</a></div><div> 42) Vepanjeri (Lord Lakshi narayana temple and astha lakshmi temple) - <a href="http://www.vepanjeri.com/" target="_blank">http://www.vepanjeri.com/</a></div><div> <a href="https://www.google.co.in/maps/dir/Thiruvannamalai,+Tamil+Nadu/Thennangur,+Tamil+Nadu/Kanchipuram,+Tamil+Nadu/Thiruthani,+Tamil+Nadu/Nagalapuram,+Andhra+Pradesh/Srikalahasti,+Andhra+Pradesh/Tirupati,+Andhra+Pradesh/Kanipakam,+Andhra+Pradesh/Vepanjeri,+Andhra+Pradesh/Ponnai,+Tamil+Nadu/@12.9878451,78.8253873,9z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!1m5!1m1!1s0x3a5326fdaef0e41f:0x62e2615fc9f0c2e9!2m2!1d79.613011!2d12.5549484!1m5!1m1!1s0x3a52c2f7e0c7f12d:0xde5f8682b1cb2a4d!2m2!1d79.7036402!2d12.8341735!1m5!1m1!1s0x3a52a4e88096e81b:0x3f117fe0519ba508!2m2!1d79.6109049!2d13.1758491!1m5!1m1!1s0x3a4d610798df206d:0x3a5f49a106d2ab7e!2m2!1d79.7988547!2d13.3857837!1m5!1m1!1s0x3a4d3e543dbbc769:0xc759d83ecf891652!2m2!1d79.7037255!2d13.7520171!1m5!1m1!1s0x3a4d4b0f88620427:0xcf4152d1daca0cac!2m2!1d79.4191795!2d13.6287557!1m5!1m1!1s0x3bad5fc3f84b4515:0xca0fe629c03660ef!2m2!1d79.035548!2d13.2775912!1m5!1m1!1s0x3bad5732d9eb328f:0xa72d524ae299d191!2m2!1d79.2313697!2d13.2237561!1m5!1m1!1s0x3bad4e2928504f65:0x202bfd089d47f4bf!2m2!1d79.2535725!2d13.1241046!3e0?hl=en" target="_blank">https://www.google.co.in/maps/dir/Thiruvannamalai,+Tamil+Nadu/Thennangur,+Tamil+Nadu/Kanchipuram,+Tamil+Nadu/Thiruthani,+Tamil+Nadu/Nagalapuram,+Andhra+Pradesh/Srikalahasti,+Andhra+Pradesh/Tirupati,+Andhra+Pradesh/Kanipakam,+Andhra+Pradesh/Vepanjeri,+Andhra+Pradesh/Ponnai,+Tamil+Nadu/@12.9878451,78.8253873,9z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!1m5!1m1!1s0x3a5326fdaef0e41f:0x62e2615fc9f0c2e9!2m2!1d79.613011!2d12.5549484!1m5!1m1!1s0x3a52c2f7e0c7f12d:0xde5f8682b1cb2a4d!2m2!1d79.7036402!2d12.8341735!1m5!1m1!1s0x3a52a4e88096e81b:0x3f117fe0519ba508!2m2!1d79.6109049!2d13.1758491!1m5!1m1!1s0x3a4d610798df206d:0x3a5f49a106d2ab7e!2m2!1d79.7988547!2d13.3857837!1m5!1m1!1s0x3a4d3e543dbbc769:0xc759d83ecf891652!2m2!1d79.7037255!2d13.7520171!1m5!1m1!1s0x3a4d4b0f88620427:0xcf4152d1daca0cac!2m2!1d79.4191795!2d13.6287557!1m5!1m1!1s0x3bad5fc3f84b4515:0xca0fe629c03660ef!2m2!1d79.035548!2d13.2775912!1m5!1m1!1s0x3bad5732d9eb328f:0xa72d524ae299d191!2m2!1d79.2313697!2d13.2237561!1m5!1m1!1s0x3bad4e2928504f65:0x202bfd089d47f4bf!2m2!1d79.2535725!2d13.1241046!3e0?hl=en</a></div><div> </div><div> 43) Ponnai Near by(Navagraha and ganapathi temple) - <a href="https://www.flickr.com/photos/rajushanthi/sets/72157613067984651/" target="_blank">https://www.flickr.com/photos/rajushanthi/sets/72157613067984651/</a> and <a href="http://en.wikipedia.org/wiki/Ponnai" target="_blank">http://en.wikipedia.org/wiki/Ponnai</a></div><div> 44) Aragonda (Lord anjaneya temple) - <a href="http://en.wikipedia.org/wiki/Aragonda" target="_blank">http://en.wikipedia.org/wiki/Aragonda</a></div><div> 45) Mulbagal (Lord anjaneya temple) - <a href="http://en.wikipedia.org/wiki/Mulbagal" target="_blank">http://en.wikipedia.org/wiki/Mulbagal</a></div><div> 46) Kurudumale (Lord maha ganapathi temple) - <a href="http://en.wikipedia.org/wiki/Kurudumale" target="_blank">http://en.wikipedia.org/wiki/Kurudumale</a></div><div> <a href="https://www.google.co.in/maps/dir/Ponnai,+Tamil+Nadu+517403/Aragonda,+Andhra+Pradesh/Mulbagal,+Karnataka/Sri+MahaGanapathi+Temple/Bangalore,+Karnataka/@13.1358236,77.8331366,9z/data=!3m1!4b1!4m32!4m31!1m5!1m1!1s0x3bad4e2928504f65:0x202bfd089d47f4bf!2m2!1d79.2535725!2d13.1241046!1m5!1m1!1s0x3bad61c0b72013a5:0xc4094c96354fa807!2m2!1d78.9564!2d13.281261!1m5!1m1!1s0x3bad8e9792d0a99d:0xd54bacf407594a0!2m2!1d78.3940737!2d13.1666533!1m5!1m1!1s0x0:0xc2874c1c68875c04!2m2!1d78.369468!2d13.210097!1m5!1m1!1s0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0!2m2!1d77.5945627!2d12.9715987!3e0?hl=en" target="_blank">https://www.google.co.in/maps/dir/Ponnai,+Tamil+Nadu+517403/Aragonda,+Andhra+Pradesh/Mulbagal,+Karnataka/Sri+MahaGanapathi+Temple/Bangalore,+Karnataka/@13.1358236,77.8331366,9z/data=!3m1!4b1!4m32!4m31!1m5!1m1!1s0x3bad4e2928504f65:0x202bfd089d47f4bf!2m2!1d79.2535725!2d13.1241046!1m5!1m1!1s0x3bad61c0b72013a5:0xc4094c96354fa807!2m2!1d78.9564!2d13.281261!1m5!1m1!1s0x3bad8e9792d0a99d:0xd54bacf407594a0!2m2!1d78.3940737!2d13.1666533!1m5!1m1!1s0x0:0xc2874c1c68875c04!2m2!1d78.369468!2d13.210097!1m5!1m1!1s0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0!2m2!1d77.5945627!2d12.9715987!3e0?hl=en</a></div><div> </div><div> End : Bangalore</div><span class=""><div><br></div><div>famous temple trips, andhra pradesh temples, tamil nadu temples, temple trip, great temples in south india.</div></span></div></div></div></div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-68160436086322446612013-04-09T07:10:00.000+05:302013-04-09T07:12:42.136+05:30Executable Java Jar File and Windows Exe File Creation<div class="WordSection1"> <p style="mso-line-height-alt:10.0pt"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">How to create an executable java jar file? I want to just double click the jar file and the application should run, please help me. I want to convert my java application to a windows exe file, how can I do it? These are two frequently asked questions.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">For you guys who know about these things already you may skip this article, as there is no surprise element embedded. For us who are interested in learning new things go ahead, anything new adds up.<o:p></o:p></span></p> <h2 style="mso-line-height-alt:15.5pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:22.0pt;font-family:"Arial","sans-serif";color:#42D236">How to Create an Executable JAR File?<o:p></o:p></span></h2> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">JDK gives us a tool to create</span><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></span><em><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">jar</span></em><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">files.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvHzmfVZMN2Q0mQZlGoGS0MejDYTW7jwnFVgCE1FiB41jxu72GWqMC_XEn0yqFl1979RgJaOro4-bdZlMyASXpN7TgrvgwQeM8UNVWLC3vKZOSgsHGDDSgM9PFdoycQD-HZcJtIZNNW9B/s1600/image001-762137.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvHzmfVZMN2Q0mQZlGoGS0MejDYTW7jwnFVgCE1FiB41jxu72GWqMC_XEn0yqFl1979RgJaOro4-bdZlMyASXpN7TgrvgwQeM8UNVWLC3vKZOSgsHGDDSgM9PFdoycQD-HZcJtIZNNW9B/s320/image001-762137.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5864656563023866578" /></a></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Before creating a java jar file, we need to create a java manifest file.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Command to create an executable java jar file:<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <em><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">jar -cvfm BundleExample.jar manifes</span></em><span class="apple-converted-space"><i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></i></span><i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><br> <em><span style="font-family:"Arial","sans-serif"">t.txt com/javapapers/corejava/*.class</span></em></span></i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <h3 style="mso-line-height-alt:12.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:16.0pt;font-family:"Arial","sans-serif";color:#42D236">How to create a java manifest file?<o:p></o:p></span></h3> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Generally we will have the</span><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><a href="http://docs.oracle.com/javase/tutorial/deployment/jar/manifestindex.html" target="_blank"><span style="color:#4290F9">manifest file</span></a></span><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">located in,<o:p></o:p></span></p> <ul type="disc"> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l0 level1 lfo1"> <span style="font-family:"Arial","sans-serif"">META-INF/manifest.mf<o:p></o:p></span></li></ul> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">This manifest file contains information about the jar file. Information like which is the main java class to be executed, who created the application, version of the application, etc.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">It is a regular text file. Remember to press enter at the end of each line and importantly in the last line.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">So with respect to creating an executable java jar file, we need to add the main class of the application using which it can be launched. Our example manifest file is like below,<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <em><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Main-Class: com.javapapers.corejava.JavaBundleExample</span></em><span class="apple-converted-space"><i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></i></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">This is the only line I have and that is sufficient for our purpose.<o:p></o:p></span></p> <h3 style="mso-line-height-alt:12.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:16.0pt;font-family:"Arial","sans-serif";color:#42D236">Sample Application<o:p></o:p></span></h3> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">We need a sample java application to enjoy this. Lets create a simple hello world type swing application.<o:p></o:p></span></p> <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="507" style="width:380.0pt;border-top-left-radius: 0px !important;border-top-right-radius: 0px !important;border-bottom-right-radius: 0px !important;border-bottom-left-radius: 0px !important;bottom: auto !important;outline: 0px !important;box-sizing: content-box !important;background-position:initial initial !important;background-repeat:initial initial !important;float:none;overflow:visible;right:auto"> <tbody> <tr style="border-top-left-radius: 0px !important;border-top-right-radius: 0px !important;border-bottom-right-radius: 0px !important;border-bottom-left-radius: 0px !important;bottom: auto !important;outline: 0px !important;box-sizing: content-box !important;background-position:initial initial !important;background-repeat:initial initial !important;float:none;overflow:visible;right:auto"> <td width="507" style="width:380.0pt;padding:0in 0in 0in 0in;border-top-left-radius: 0px !important;border-top-right-radius: 0px !important;border-bottom-right-radius: 0px !important;border-bottom-left-radius: 0px !important;bottom: auto !important;outline: 0px !important;box-sizing: content-box !important;background-position:initial initial !important;background-repeat:initial initial !important;float:none;overflow:visible;right:auto"> <p class="MsoNormal" style="orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <code><span style="font-size:12.0pt">package</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">com.javapapers.corejava;</span></code><span style="font-size:16.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">java.awt.GridLayout;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">javax.swing.BorderFactory;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">javax.swing.JButton;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">javax.swing.JFrame;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">javax.swing.JLabel;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">import</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">javax.swing.JPanel;</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">public</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">class</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">JavaBundleExample {</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> private</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">static</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">void</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">createAndShowGUI() {</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> JFrame.setDefaultLookAndFeelDecorated(true);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> JFrame frame = new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">JFrame("Bundle Example");</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> JPanel pane = new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">JPanel(new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">GridLayout(0, 1));</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> JButton button = new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">JButton("Dummy Button!");</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> pane.add(button);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> JLabel label = new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">JLabel("Example for Bundling JRE with Java Class");</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> pane.add(label);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> pane.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> frame.getContentPane().add(pane);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> frame.pack();</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> frame.setVisible(true);</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> }</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:14.0pt"> <o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> public</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">static</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">void</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">main(String[] args) {</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> javax.swing.SwingUtilities.invokeLater(new</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">Runnable() {</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> public</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">void</span></code><span style="font-size:14.0pt"> </span><code><span style="font-size:12.0pt">run() {</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> createAndShowGUI();</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> }</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> });</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt"> }</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> <p class="MsoNormal"><code><span style="font-size:12.0pt">}</span></code><span style="font-size:14.0pt"><o:p></o:p></span></p> </td> </tr> </tbody> </table> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Output:<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDPkr3h0aq1DmVd7BkoODQY8_jzJZVyy2ocysqwmHix4vjLOucjrhrzOzfvS-Aui8GbGKBJA4pBfbMZ5_XZGKC6ba1Z1C66eJ82-fcZDKZiOV8JOZmyfEZI-9z_XIYS2_WqyHYr5Ta-xUl/s1600/image002-763776.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDPkr3h0aq1DmVd7BkoODQY8_jzJZVyy2ocysqwmHix4vjLOucjrhrzOzfvS-Aui8GbGKBJA4pBfbMZ5_XZGKC6ba1Z1C66eJ82-fcZDKZiOV8JOZmyfEZI-9z_XIYS2_WqyHYr5Ta-xUl/s320/image002-763776.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5864656567395915618" /></a></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Just execute the following line (command) to create the jar file, you should have added JDK to PATH.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <em><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">jar -cvfm BundleExample.jar manifes</span></em><span class="apple-converted-space"><i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></i></span><i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><br> <em><span style="font-family:"Arial","sans-serif"">t.txt com/javapapers/corejava/*.class</span></em></span></i><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Now we can double click the jar file and the application will launch and run.<o:p></o:p></span></p> <h2 style="mso-line-height-alt:15.5pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:22.0pt;font-family:"Arial","sans-serif";color:#42D236">How to Create a Windows Exe file?<o:p></o:p></span></h2> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">If we create a windows native exe file, then we loose the platform independent-ness.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZKGVcrFlGoNiIXEo0RejYDWyJcLMpX0BJrMgjWPMz7OXFPYvOgKjOSl222TZ-rCNUOIE6IUyBS1sKtbzMT5oBTkIL_EA0O7opLr4h25-eCIxjHqcAYqTPIZysJtZ1pmOVkJLmQiGC8vva/s1600/image003-764811.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZKGVcrFlGoNiIXEo0RejYDWyJcLMpX0BJrMgjWPMz7OXFPYvOgKjOSl222TZ-rCNUOIE6IUyBS1sKtbzMT5oBTkIL_EA0O7opLr4h25-eCIxjHqcAYqTPIZysJtZ1pmOVkJLmQiGC8vva/s320/image003-764811.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5864656573057339074" /></a></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Let us use a tool called</span><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"> </span></span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><a href="http://sourceforge.net/projects/launch4j/" target="_blank"><span style="color:#4290F9">Launch4J</span></a>. It’s a nice tool, works good and easy to use.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Its core features are,<o:p></o:p></span></p> <ul type="disc"> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">creating lightweight Windows native EXE<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">JRE version control<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">app icon<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">splash screen<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">process name<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l2 level1 lfo2"> <span style="font-family:"Arial","sans-serif"">Java download page<o:p></o:p></span></li></ul> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black">Download Launch4J and use the GUI to create the windows/Java exe file. Launc4J creates an XML file to save the configuration.<o:p></o:p></span></p> <p style="mso-line-height-alt:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <a href="http://javapapers.com/wp-content/uploads/2013/04/launch4jconfig.png"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#4290F9;text-decoration:none"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAMlqVdlGcluWz8ZaPo-OVVjfX8w4tPR1NUs_MNlzqwXGbX22_SgYIHiBk6KzvuOUu5vLTmGgzejpt-pxKUhBdF2Sj-Umu_y7P0i6kaK2l35027EhN1VYPIj5I8D6vLCQrWDmTZ8jOD3k/s1600/image004-766008.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAMlqVdlGcluWz8ZaPo-OVVjfX8w4tPR1NUs_MNlzqwXGbX22_SgYIHiBk6KzvuOUu5vLTmGgzejpt-pxKUhBdF2Sj-Umu_y7P0i6kaK2l35027EhN1VYPIj5I8D6vLCQrWDmTZ8jOD3k/s320/image004-766008.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5864656582558826642" /></a></span></a><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <ul type="disc"> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l1 level1 lfo3"> <span style="font-family:"Arial","sans-serif"">I have specified the output file, this is the name of the exe file to be created.<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l1 level1 lfo3"> <span style="font-family:"Arial","sans-serif"">Jar is the input file which we want to bundle as an exe file. Lets use the Java JAR which we created in the previous step.<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l1 level1 lfo3"> <span style="font-family:"Arial","sans-serif"">In JRE tab, we can specify the Min JRE version required. So this will detect the JRE available in the system and verify if the version is sufficient.<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.0pt;mso-list:l1 level1 lfo3"> <span style="font-family:"Arial","sans-serif"">Click the cog wheel icon from the menu to generate the exe file.<o:p></o:p></span></li></ul> <p class="MsoNormal"><span style="font-size:14.0pt">Source: javapapers.com<o:p></o:p></span></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-19976724814837658522013-04-04T21:26:00.000+05:302013-04-04T21:27:51.474+05:30Ant Colony Optimization in Java<div class="WordSection1"> <p style="line-height:10.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black">Long back I introduced Wordle word clouds as part of Java gallery and then completely forgot about the gallery category. Today I was reading about ant colony optimization and came across a nice implementation of it in Java. Thought of sharing this Java application to you as part of Java gallery.<o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black">Ant colony optimization is an awesome algorithm inspired by ant’s natural intelligence. Like cockroaches, ants are extremely successful insects surviving for millions of years. Ants live in colonies and they have hierarchies among them. Physical castes are, like worker ants have responsibilities divided based on their size.<o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUNcrlR-hJy_5vvG8MgHAZBPu8bLwzHg5mv7My6c6lELED3sNEU-giKdv6ycqcTQUOvoYpsMW-lVlgAe9MLj241pEGOHQD_iA_Pq8X966rfBdH4q2T99Jx0SZY1kkthQYfPHel4wyxwMP8/s1600/image001-771475.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUNcrlR-hJy_5vvG8MgHAZBPu8bLwzHg5mv7My6c6lELED3sNEU-giKdv6ycqcTQUOvoYpsMW-lVlgAe9MLj241pEGOHQD_iA_Pq8X966rfBdH4q2T99Jx0SZY1kkthQYfPHel4wyxwMP8/s320/image001-771475.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5863021506012216722" /></a></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black">Ants communicate within themselves effectively. Their form of communication is efficient enough to help them survive for millions of years. Apart from sound, touch they use a secreted chemical called pheromone to communicate. Ants go out in search of food and once it finds a food source, on its return back to home ants spit pheromone on the trail. If it comes across obstacles during its way back, the group gets dispersed to find a shortest route.<o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black">Ants use pheromones to find the shortest path between home and food source. Pheromones evaporate quickly. Assume that there are two path trails formed by ants between its home and food source. When an ant walks out looking for food, it will choose the path where the pheromone is denser. Since the shortest path will have denser pheromone.<o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYZWeXoQGKvi8j2cT6QlEdjFSYbm3PUwiY9kBh2g_vZy8SaZm6CczRwcKQ4KwZFk8B0frCM6wc4uUF2xz5vjiClpLif7SliokskJR9j_or8tP_7HLyIudGGEgP6ecZnkmLsRRv0mpANch/s1600/image002-773082.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYZWeXoQGKvi8j2cT6QlEdjFSYbm3PUwiY9kBh2g_vZy8SaZm6CczRwcKQ4KwZFk8B0frCM6wc4uUF2xz5vjiClpLif7SliokskJR9j_or8tP_7HLyIudGGEgP6ecZnkmLsRRv0mpANch/s320/image002-773082.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5863021517266363170" /></a></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black">Christian Borgelt has created a nice implementation of<span class="apple-converted-space"> </span><a href="http://www.borgelt.net/acopt.html" target="_blank"><span style="color:#4290F9">ant colony optimization in Java</span></a>. It is worth having a look at it. He has used Java Swing, Awt, for UI using which the traversal for shortest path is shown.<o:p></o:p></span></p> <p style="line-height:10.0pt;orphans: auto;widows: auto;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px"> <span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHCChRkzG_2zlqQwh2aVeDCXC6uWjX4llihEIUpC5SxWJBmthSKkkSHpYJq9623v3PNByIWKUVFssG5lsBY6RuTqYNa8_IA9o5-Ee0nRZxuxEZ4oQ-AtWI64IIJBL7ka1lGvyQx4H5TPu/s1600/image003-775896.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHCChRkzG_2zlqQwh2aVeDCXC6uWjX4llihEIUpC5SxWJBmthSKkkSHpYJq9623v3PNByIWKUVFssG5lsBY6RuTqYNa8_IA9o5-Ee0nRZxuxEZ4oQ-AtWI64IIJBL7ka1lGvyQx4H5TPu/s320/image003-775896.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5863021523438148706" /></a></span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p> <p class="MsoNormal">=========<o:p></o:p></p> <p class="MsoNormal">Source: javapapers.com<o:p></o:p></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com7tag:blogger.com,1999:blog-2834836888490179598.post-22262200907899338502013-02-25T14:59:00.000+05:302013-02-25T15:01:26.984+05:30What is National Drug Code (NDC)<div class="WordSection1"> <p class="MsoNormal"><span style="color:#1F497D">What is a National Drug Code (<b>NDC</b>)?<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">The NDC, or <b>National Drug Code</b>, is a unique 10-digit, 3-segment number. It is a universal product identifier for <b>human drugs</b> in the United States. The code is present on all nonprescription (OTC) and prescription medication packages and inserts in the US. <o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">The 3 segments of the NDC identify the <b>labeler</b>, the <b>product</b>, and the <b>commercial package size</b>. (Please refer the below example NDC Image)<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">The first set of numbers in the NDC identifies the labeler (manufacturer, repackager, or distributer). <o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">The second set of numbers is the product code, which identifies the specific strength, dosage form (i.e, capsule, tablet, liquid) and formulation of a drug for a specific manufacturer. <o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">Finally, the third set is the package code, which identifies package sizes and types. The labeler code is assigned by the FDA, while the product and package code are assigned by the labeler.<o:p></o:p></span></p> <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white"> <b><span lang="EN" style="font-size:15.0pt;font-family:"Arial","sans-serif";color:black">Example NDC<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-top:9.6pt;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#333333"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgk-N5QWjjSr33Jc079awnA6icOjpVEXFf1YydBeLt70GMU-wD9YZNiyxPo4IT7-GnpNzEjbN9VhskN04HvEIUTBEKd0sOdrJGbOwdWb7V3zazo9MCCjZTFNh_YsxI2mpWWhP1pP1OirXI/s1600/image002-786984.png"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgk-N5QWjjSr33Jc079awnA6icOjpVEXFf1YydBeLt70GMU-wD9YZNiyxPo4IT7-GnpNzEjbN9VhskN04HvEIUTBEKd0sOdrJGbOwdWb7V3zazo9MCCjZTFNh_YsxI2mpWWhP1pP1OirXI/s320/image002-786984.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5848820697649718930" /></a></span><span lang="EN" style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:9.6pt;background:white"><span lang="EN" style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-top:9.6pt;background:white"><span lang="EN" style="color:#1F497D">Find the codes in <a href="http://www.findacode.com/">http://www.findacode.com/</a> <o:p></o:p></span></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-54304814200631155202012-03-08T11:15:00.001+05:302012-03-08T11:15:24.555+05:30To compile java files within Directory including subdirectoryThere is no direct way to do it.<p>Alternatives:<br>1. using Build tool like Maven, Ant etc or using Batch scripts.<br>2. using command line,<p>>dir /b /s *.java >> files.txt<p>Dir to Display a list of files and subfolders<br>/b for Bare format (no heading, file sizes or summary).<br>/s for include all subfolders.<br>>> for print the output in to a file<p>Then type: javac @files.txtUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-36149934963175846322011-06-30T16:30:00.000+05:302011-07-27T12:47:23.833+05:30String and StringBuffer Implementation - which is fast<div class=Section1> <div> <p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:maroon'>All,</span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal> <span style='font-family:"Calibri","sans-serif"; color:maroon'>I came across some interesting fact on String and String Buffer. We know that String concatination internaly uses StringBuffer to do the concatination operation, and thinking about this we do concatination as mentioned below: </span><o:p></o:p></p> </div> <div> <p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:maroon'> String str=a+b; a and b is string objects.</span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal> <span style='font-family:"Calibri","sans-serif"; color:maroon'>java compiler compiles above code in this fashion: </span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:maroon'> String str=(new StringBuffer()).append(a).append(b).toString()); </span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:maroon'> Above code creates two objects, and as you must be knowing that java maintains the string data in char array which is also an object so +1 more object. So in total 3 objects gets created for one concatination operation. Please note that object creation is one of the costiliest operation in java. </span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:maroon'> I created one test program just to see the performance difference and results were dramatic... i ran both loop in same program 1 lakhs times. See the time difference... So based on below result i would recommend please start using StringBuffer.append whenever you are doing any concatination operation in java...</span><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal><strong><span style='font-family:"Calibri","sans-serif"; color:red'> time taken by string: 78080 (ms)</span></strong><b><span style='font-family:"Calibri","sans-serif";color:red'><br> <strong><span style='font-family:"Calibri","sans-serif"'> time taken by String buffer: 31 (ms)</span></strong></span></b><o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> <div> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p> </o:p></p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p> </o:p></p> </div> <div> <p class=MsoNormal> <o:p></o:p></p> </div> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-65001639869583547972011-06-30T16:24:00.000+05:302011-07-27T12:48:44.511+05:30How to identify the YUI version<img src="cid:image001.jpg@01CB9D17.A8C4F5C0" v:src="cid:image001.jpg@01CB9D17.A8C4F5C0" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'> <div class=Section1> <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hi all,<o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Steps for identifying YUI version:<o:p></o:p></span></p> <ol start=1 type=1> <li class=MsoNormal style='mso-list:l0 level1 lfo3'><span style='font-size: 10.0pt;font-family:"Verdana","sans-serif"'>Open the YUIInclude.js (or respective YUI related JS you have used).<o:p></o:p></span></li> <li class=MsoNormal style='mso-list:l0 level1 lfo3'><span style='font-size: 10.0pt;font-family:"Verdana","sans-serif"'>Search for the string ‘YAHOO.register(’.<o:p></o:p></span></li> <li class=MsoNormal style='mso-list:l0 level1 lfo3'><span style='font-size: 10.0pt;font-family:"Verdana","sans-serif"'>This is a JS function where you pass the version number. Check its arguments for your YUI version.<o:p></o:p></span></li> </ol> <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>NOTE: If you are using YUI version less than 2.8, please upgrade it to 2.8. This will not require any code changes other than JS and CSS file change. Do a thorough testing of your application functionality after upgrading.<o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Thanks.<span style='color:#1F497D'><o:p></o:p></span></span></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-43980661109605708742011-04-07T10:45:00.001+05:302011-07-27T12:48:16.249+05:30Java J2EE Interview Questions and Answers - Part 7<div class=Section1> <ol start=91 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is connection pooling?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- With servlets, opening a database connection is a major bottleneck because we are creating and tearing down a new connection for every page request and the time taken to create connection will be more. Creating a connection pool is an ideal approach for a complicated servlet. With a connection pool, we can duplicate only the resources we need to duplicate rather than the entire servlet. A connection pool can also intelligently manage the size of the pool and make sure each connection remains valid. A number of connection pool packages are currently available. Some like DbConnectionBroker are freely available from Java Exchange Works by creating an object that dispenses connections and connection Ids on request. The ConnectionPool class maintains a Hastable, using Connection objects as keys and Boolean values as stored values. The Boolean value indicates whether a connection is in use or not. A program calls getConnection() method of the ConnectionPool for getting Connection object it can use; it calls returnConnection() to give the connection back to the pool. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Why should we go for interservlet communication?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Servlets running together in the same server communicate with each other in several ways. The three major reasons to use interservlet communication are: a) Direct servlet manipulation - allows to gain access to the other currently loaded servlets and perform certain tasks (through the ServletContext object) b) Servlet reuse - allows the servlet to reuse the public methods of another servlet. c) Servlet collaboration - requires to communicate with each other by sharing specific information (through method invocation) </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Is it possible to call servlet with parameters in the URL?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Yes. You can call a servlet with parameters in the syntax as (?Param1 = xxx || m2 = yyy). </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p> <ol start=94 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is Servlet chaining?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Servlet chaining is a technique in which two or more servlets can cooperate in servicing a single request. In servlet chaining, one servlet’s output is piped to the next servlet’s input. This process continues until the last servlet is reached. Its output is then sent back to the client. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How do servlets handle multiple simultaneous requests?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- The server has multiple threads that are available to handle requests. When a request comes in, it is assigned to a thread, which calls a service method (for example: doGet(), doPost() and service()) of the servlet. For this reason, a single servlet object can have its service methods called by many threads at once. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between TCP/IP and UDP?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- TCP/IP is a two-way communication between the client and the server and it is a reliable and there is a confirmation regarding reaching the message to the destination. It is like a phone call. UDP is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination. It is like a postal mail. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=97 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is Inet address?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- Every computer connected to a network has an IP address. An IP address is a number that uniquely identifies each computer on the Net. An IP address is a 32-bit number. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is Domain Naming Service(DNS)?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- It is very difficult to remember a set of numbers(IP address) to connect to the Internet. The Domain Naming Service(DNS) is used to overcome this problem. It maps one particular IP address to a string of characters. For example, www. mascom. com implies com is the domain name reserved for US commercial sites, moscom is the name of the company and www is the name of the specific computer, which is mascom’s server. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is URL?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- URL stands for Uniform Resource Locator and it points to resource files on the Internet. URL has four components: http://www. address. com:80/index.html, where http - protocol name, address - IP address or host name, 80 - port number and index.html - file path. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=100 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is RMI and steps involved in developing an RMI object?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Remote Method Invocation (RMI) allows java object that executes on one machine and to invoke the method of a Java object to execute on another machine. The steps involved in developing an RMI object are: a) Define the interfaces b) Implementing these interfaces c) Compile the interfaces and their implementations with the java compiler d) Compile the server implementation with RMI compiler e) Run the RMI registry f) Run the application </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is RMI architecture?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- RMI architecture consists of four layers and each layer performs specific functions: a) Application layer - contains the actual object definition. b) Proxy layer - consists of stub and skeleton. c) Remote Reference layer - gets the stream of bytes from the transport layer and sends it to the proxy layer. d) Transportation layer - responsible for handling the actual machine-to-machine communication. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>what is UnicastRemoteObject?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- All remote objects must extend UnicastRemoteObject, which provides functionality that is needed to make objects available from remote machines. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=103 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Explain the methods, rebind() and lookup() in Naming class?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- rebind() of the Naming class(found in java. rmi) is used to update the RMI registry on the server machine. Naming. rebind(”AddSever”, AddServerImpl); lookup() of the Naming class accepts one argument, the rmi URL and returns a reference to an object of type AddServerImpl. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a Java Bean?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- A Java Bean is a software component that has been designed to be reusable in a variety of different environments. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a Jar file?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- Jar file allows to efficiently deploying a set of classes and their associated resources. The elements in a jar file are compressed, which makes downloading a Jar file much faster than separately downloading several uncompressed files. The package java. util. zip contains classes that read and write jar files.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com6tag:blogger.com,1999:blog-2834836888490179598.post-58155890885073369602011-04-07T10:45:00.000+05:302011-07-27T12:48:16.250+05:30Java J2EE Interview Questions and Answers - Part 6<div class=Section1> <ol start=76 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the types of statements in JDBC?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Statement: to be used createStatement() method for executing single SQL statement PreparedStatement — To be used preparedStatement() method for executing same SQL statement over and over. CallableStatement — To be used prepareCall() method for multiple SQL statements over and over. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is stored procedure?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Stored procedure is a group of SQL statements that forms a logical unit and performs a particular task. Stored Procedures are used to encapsulate a set of operations or queries to execute on database. Stored procedures can be compiled and executed with different parameters and results and may have any combination of input/output parameters. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How to create and call stored procedures?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- To create stored procedures: Create procedure procedurename (specify in, out and in out parameters) BEGIN Any multiple SQL statement; END; To call stored procedures: CallableStatement csmt = con. prepareCall(”{call procedure name(?,?)}”); csmt. registerOutParameter(column no. , data type); csmt. setInt(column no. , column name) csmt. execute(); </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=79 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is servlet?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Servlets are modules that extend request/response-oriented servers, such as java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company’s order database. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the classes and interfaces for servlets?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- There are two packages in servlets and they are javax. servlet and </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between an applet and a servlet?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) Servlets are to servers what applets are to browsers. b) Applets must have graphical user interfaces whereas servlets have no graphical user interfaces. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=82 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between doPost and doGet methods?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) doGet() method is used to get information, while doPost() method is used for posting information. b) doGet() requests can’t send large amount of information and is limited to 240-255 characters. However, doPost()requests passes all of its data, of unlimited length. c) A doGet() request is appended to the request URL in a query string and this allows the exchange is visible to the client, whereas a doPost() request passes directly over the socket connection as part of its HTTP request body and the exchange are invisible to the client. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the life cycle of a servlet?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Each Servlet has the same life cycle: a) A server loads and initializes the servlet by init () method. b) The servlet handles zero or more client’s requests through service() method. c) The server removes the servlet through destroy() method. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Who is loading the init() method of servlet?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Web server </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=85 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the different servers available for developing and deploying Servlets?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- a) Java Web Server b) JRun g) Apache Server h) Netscape Information Server i) Web Logic </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How many ways can we track client and what are they?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- The servlet API provides two ways to track client state and they are: a) Using Session tracking and b) Using Cookies. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is session tracking and how do you track a user session in servlets?</span></b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>- Session tracking is a mechanism that servlets use to maintain state about a series requests from the same user across some period of time. The methods used for session tracking are: a) User Authentication - occurs when a web server restricts access to some of its resources to only those clients that log in using a recognized username and password. b) Hidden form fields - fields are added to an HTML form that are not displayed in the client’s browser. When the form containing the fields is submitted, the fields are sent back to the server. c) URL rewriting - every URL that the user clicks on is dynamically modified or rewritten to include extra information. The extra information can be in the form of extra path information, added parameters or some custom, server-specific URL change. d) Cookies - a bit of information that is sent by a web server to a browser and which can later be read back from that browser. e) HttpSession- places a limit on the number of sessions that can exist in memory. This limit is set in the session. maxresidents property. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=88 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is Server-Side Includes (SSI)?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Server-Side Includes allows embedding servlets within HTML pages using a special servlet tag. In many servlets that support servlets, a page can be processed by the server to include output from servlets at certain points inside the HTML page. This is accomplished using a special internal SSINCLUDE, which processes the servlet tags. SSINCLUDE servlet will be invoked whenever a file with an. shtml extension is requested. So HTML files that include server-side includes must be stored with an . shtml extension. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are cookies and how will you use them?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Cookies are a mechanism that a servlet uses to have a client hold a small amount of state-information associated with the user. a) Create a cookie with the Cookie constructor: public Cookie(String name, String value) b) A servlet can send a cookie to the client by passing a Cookie object to the addCookie() method of HttpServletResponse: public void HttpServletResponse. addCookie(Cookie cookie) c) A servlet retrieves cookies by calling the getCookies() method of HttpServletRequest: public Cookie[ ] HttpServletRequest. getCookie(). </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Is it possible to communicate from an applet to servlet and how many ways and how?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Yes, there are three ways to communicate from an applet to servlet and they are: a) HTTP Communication(Text-based and object-based) b) Socket Communication c) RMI Communication</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com14tag:blogger.com,1999:blog-2834836888490179598.post-31017693930036853402011-04-04T23:23:00.001+05:302011-07-27T12:48:16.251+05:30Java J2EE Interview Questions and Answers - Part 5<div class=Section1> <ol start=61 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Which containers use a Border layout as their default layout?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Window, Frame and Dialog classes use a BorderLayout as their layout. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Which containers use a Flow layout as their default layout?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Panel and Applet classes use the FlowLayout as their default layout. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are wrapper classes?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Wrapper classes are classes that allow primitive types to be accessed as objects. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=64 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are Vector, Hashtable, LinkedList and Enumeration?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Vector : The Vector class provides the capability to implement a growable array of objects. Hashtable : The Hashtable class implements a Hashtable data structure. A Hashtable indexes and stores objects in a dictionary using hash codes as the object’s keys. Hash codes are integer values that identify objects. LinkedList: Removing or inserting elements in the middle of an array can be done using LinkedList. A LinkedList stores each object in a separate link whereas an array stores object references in consecutive locations. Enumeration: An object that implements the Enumeration interface generates a series of elements, one at a time. It has two methods, namely hasMoreElements() and nextElement(). HasMoreElemnts() tests if this enumeration has more elements and nextElement method returns successive elements of the series. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between set and list?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Set stores elements in an unordered way but does not contain duplicate elements, whereas list stores elements in an ordered way but may contain duplicate elements. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a stream and what are the types of Streams and classes of the Streams?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- A Stream is an abstraction that either produces or consumes information. There are two types of Streams and they are: Byte Streams: Provide a convenient means for handling input and output of bytes. Character Streams: Provide a convenient means for handling input & output of characters. Byte Streams classes: Are defined by using two abstract classes, namely InputStream and OutputStream. Character Streams classes: Are defined by using two abstract classes, namely Reader and Writer. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=67 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between Reader/Writer and InputStream/Output Stream?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- The Reader/Writer class is character-oriented and the InputStream/OutputStream class is byte-oriented. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is an I/O filter?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is serialization and deserialization?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=70 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is JDBC?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- JDBC is a set of Java API for executing SQL statements. This API consists of a set of classes and interfaces to enable programs to write pure Java Database applications. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are drivers available?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) JDBC-ODBC Bridge driver b) Native API Partly-Java driver c) JDBC-Net Pure Java driver d) Native-Protocol Pure Java driver </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between JDBC and ODBC?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) OBDC is for Microsoft and JDBC is for Java applications. b) ODBC can’t be directly used with Java because it uses a C interface. c) ODBC makes use of pointers which have been removed totally from Java. d) ODBC mixes simple and advanced features together and has complex options for simple queries. But JDBC is designed to keep things simple while allowing advanced capabilities when required. e) ODBC requires manual installation of the ODBC driver manager and driver on all client machines. JDBC drivers are written in Java and JDBC code is automatically installable, secure, and portable on all platforms. f) JDBC API is a natural Java interface and is built on ODBC. JDBC retains some of the basic features of ODBC. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=73 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the types of JDBC Driver Models and explain them?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- There are two types of JDBC Driver Models and they are: a) Two tier model and b) Three tier model Two tier model: In this model, Java applications interact directly with the database. A JDBC driver is required to communicate with the particular database management system that is being accessed. SQL statements are sent to the database and the results are given to user. This model is referred to as client/server configuration where user is the client and the machine that has the database is called as the server. Three tier model: A middle tier is introduced in this model. The functions of this model are: a) Collection of SQL statements from the client and handing it over to the database, b) Receiving results from database to the client and c) Maintaining control over accessing and updating of the above. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the steps involved for making a connection with a database or how do you connect to a database?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'> a) Loading the driver : To load the driver, Class. forName() method is used. Class. forName(”sun. jdbc. odbc. JdbcOdbcDriver”); When the driver is loaded, it registers itself with the java. sql. DriverManager class as an available database driver. b) Making a connection with database: To open a connection to a given database, DriverManager. getConnection() method is used. Connection con = DriverManager. getConnection (”jdbc:odbc:somedb”, “user”, “password”); c) Executing SQL statements : To execute a SQL query, java. sql. statements class is used. createStatement() method of Connection to obtain a new Statement object. Statement stmt = con. createStatement(); A query that returns data can be executed using the executeQuery() method of Statement. This method executes the statement and returns a java. sql. ResultSet that encapsulates the retrieved data: ResultSet rs = stmt. executeQuery(”SELECT * FROM some table”); d) Process the results : ResultSet returns one row at a time. Next() method of ResultSet object can be called to move to the next row. The getString() and getObject() methods are used for retrieving column values: while(rs. next()) { String event = rs. getString(”event”); Object count = (Integer) rs. getObject(”count”); </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What type of driver did you use in project?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- JDBC- ODBC Bridge driver (is a driver that uses native(C language) libraries and makes calls to an existing ODBC driver to access a database engine).</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-37677211892634949182011-04-04T23:21:00.001+05:302011-07-27T12:48:16.252+05:30Java J2EE Interview Questions and Answers - Part 4<div class=Section1> <ol start=46 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is an applet?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between applications and applets?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a)Application must be run on local machine whereas applet needs no explicit installation on local machine. b)Application must be run explicitly within a java-compatible virtual machine whereas applet loads and runs itself automatically in a java-enabled browser. d)Application starts execution with its main method whereas applet starts execution with its init method. e)Application can run with or without graphical user interface whereas applet must run within a graphical user interface. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How does applet recognize the height and width?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Using getParameters() method. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=49 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>When do you use codebase in applet?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- When the applet class file is not in the same directory, codebase is used. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the lifecycle of an applet?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- init() method - Can be called when an applet is first loaded start() method - Can be called each time an applet is started. paint() method - Can be called when the applet is minimized or maximized. stop() method - Can be used when the browser moves off the applet’s page. destroy() method - Can be called when the browser is finished with the applet. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How do you set security in applets?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- using setSecurityManager() method </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=52 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is an event and what are the models available for event handling?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- An event is an event object that describes a state of change in a source. In other words, event occurs when an action is generated, like pressing button, clicking mouse, selecting a list, etc. There are two types of models for handling events and they are: a) event-inheritance model and b) event-delegation model </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the advantages of the model over the event-inheritance model?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- The event-delegation model has two advantages over the event-inheritance model. They are: a)It enables event handling by objects other than the ones that generate the events. This allows a clean separation between a component’s design and its use. b)It performs much better in applications where many events are generated. This performance improvement is due to the fact that the event-delegation model does not have to be repeatedly process unhandled events as is the case of the event-inheritance. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is source and listener?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- source : A source is an object that generates an event. This occurs when the internal state of that object changes in some way. listener : A listener is an object that is notified when an event occurs. It has two major requirements. First, it must have been registered with one or more sources to receive notifications about specific types of events. Second, it must implement methods to receive and process these notifications. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=55 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is adapter class?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- An adapter class provides an empty implementation of all methods in an event listener interface. Adapter classes are useful when you want to receive and process only some of the events that are handled by a particular event listener interface. You can define a new class to act listener by extending one of the adapter classes and implementing only those events in which you are interested. For example, the MouseMotionAdapter class has two methods, mouseDragged()and mouseMoved(). The signatures of these empty are exactly as defined in the MouseMotionListener interface. If you are interested in only mouse drag events, then you could simply extend MouseMotionAdapter and implement mouseDragged() . </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is meant by controls and what are different types of controls in AWT?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Controls are components that allow a user to interact with your application and the AWT supports the following types of controls: Labels, Push Buttons, Check Boxes, Choice Lists, Lists, Scrollbars, Text Components. These controls are subclasses of Component. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between choice and list?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices and only one item may be selected from a choice. A List may be displayed in such a way that several list items are visible and it supports the selection of one or more list items. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=58 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between scrollbar and scrollpane?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- A Scrollbar is a Component, but not a Container whereas Scrollpane is a Container and handles its own events and perform its own scrolling. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a layout manager and what are different types of layout managers available in java AWT?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- A layout manager is an object that is used to organize components in a container. The different layouts are available are FlowLayout, BorderLayout, CardLayout, GridLayout and GridBagLayout. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How are the elements of different layouts organized?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- FlowLayout: The elements of a FlowLayout are organized in a top to bottom, left to right fashion. BorderLayout: The elements of a BorderLayout are organized at the borders (North, South, East and West) and the center of a container. CardLayout: The elements of a CardLayout are stacked, on top of the other, like a deck of cards. GridLayout: The elements of a GridLayout are of equal size and are laid out using the square of a grid. GridBagLayout: The elements of a GridBagLayout are organized according to a grid. However, the elements are of different size and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com19tag:blogger.com,1999:blog-2834836888490179598.post-86308396845171842932011-04-03T20:04:00.001+05:302011-07-27T12:48:16.254+05:30Java J2EE Interview Questions and Answers - Part 3<div class=Section1> <ol start=31 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a cloneable interface and how many methods does it contain?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- It is not having any method because it is a TAGGED or MARKER interface. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between abstract class and interface?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract. b) In abstract class, key word abstract must be used for the methods whereas interface we need not use that keyword for the methods. c) Abstract class must have subclasses whereas interface can’t have subclasses. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Can you have an inner class inside a method and what variables can you access?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Yes, we can have an inner class inside a method and final variables can be accessed. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=34 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between String and String Buffer?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between Array and vector?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Array is a set of related data type and static whereas vector is a growable array of objects and dynamic. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between exception and error?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- The exception class defines mild error conditions that your program encounters. Exceptions can occur when trying to open the file, which does not exist, the network connection is disrupted, operands being manipulated are out of prescribed ranges, the class file you are interested in loading is missing. The error class defines serious error conditions that you should not attempt to recover from. In most cases it is advisable to let the program terminate when such an error is encountered. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=37 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between process and thread?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Process is a program in execution whereas thread is a separate path of execution in a program. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is multithreading and what are the methods for inter-thread communication and what is the class in which these methods are defined?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Multithreading is the mechanism in which more than one thread run independent of each other within the process. wait (), notify () and notifyAll() methods can be used for inter-thread communication and these methods are in Object class. wait() : When a thread executes a call to wait() method, it surrenders the object lock and enters into a waiting state. notify() or notifyAll() : To remove a thread from the waiting state, some other thread must make a call to notify() or notifyAll() method on the same object. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the class and interface in java to create thread and which is the most advantageous method?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Thread class and Runnable interface can be used to create threads and using Runnable interface is the most advantageous method to create threads because we need not extend thread class here. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=40 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are the states associated in the thread?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Thread contains ready, running, waiting and dead states. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is synchronization?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>When you will synchronize a piece of your code?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- When you expect your code will be accessed by different threads and these threads may change a particular data causing data corruption. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=43 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is deadlock?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- When two threads are waiting each other and can’t precede the program is said to be deadlock. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is daemon thread and which method is used to create the daemon thread?</span></b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>- Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>Are there any global variables in Java, which can be accessed by other part of your program?</span></b><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>- No, it is not the main method in which you define variables. Global variables is not possible because concept of encapsulation is eliminated here.</span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-24557275259465883652011-04-03T19:45:00.001+05:302011-07-27T12:48:16.255+05:30Java J2EE Interview Questions and Answers - Part 2<div class=Section1> <ol start=16 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is Garbage Collection and how to call it explicitly?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- When an object is no longer referred to by any variable, java automatically reclaims memory used by that object. This is known as garbage collection. System. gc() method may be used to call it explicitly. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is finalize() method?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- finalize () method is used just before an object is destroyed and can be called just prior to garbage collection. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are Transient and Volatile Modifiers?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Transient: The transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized. Volatile: Volatile modifier applies to variables only and it tells the compiler that the variable modified by volatile can be changed unexpectedly by other parts of the program. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=19 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is method overloading and method overriding?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Method overloading: When a method in a class having the same method name with different arguments is said to be method overloading. Method overriding : When a method in a class having the same method name with same arguments is said to be method overriding. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is difference between overloading and overriding?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and subclass method. b) Overloading does not block inheritance from the superclass whereas overriding blocks inheritance from the superclass. c) In overloading, separate methods share the same name whereas in overriding, subclass method replaces the superclass. d) Overloading must have different method signatures whereas overriding must have same signature. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo2'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is meant by Inheritance and what are its advantages?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Inheritance is the process of inheriting all the features from a class. The advantages of inheritance are reusability of code and accessibility of variables and methods of the super class by subclasses. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=22 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between this() and super()?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- this() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between superclass and subclass?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- A super class is a class that is inherited whereas sub class is a class that does the inheriting. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l2 level1 lfo3'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What modifiers may be used with top-level class?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- public, abstract and final can be used for top-level class. </span><span style='font-size: 12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=25 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are inner class and anonymous class?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Inner class : classes defined in other classes, including those defined in methods are called inner classes. An inner class can have any accessibility including private. Anonymous class : Anonymous class is a class defined inside a method without a name and is instantiated and declared in the same place and cannot have explicit constructors. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a package?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- A package is a collection of classes and interfaces that provides a high-level layer of access protection and name space management. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo4'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is a reflection package?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- java. lang. reflect package has the ability to analyze itself in runtime. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> <ol start=28 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is interface and its use?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Interface is similar to a class which may contain method’s signature only but not bodies and it is a formal set of method and constant declarations that must be defined by the class that implements it. Interfaces are useful for: a)Declaring methods that one or more classes are expected to implement b)Capturing similarities between unrelated classes without forcing a class relationship. c)Determining an object’s programming interface without revealing the actual body of the class. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is an abstract class?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- An abstract class is a class designed with implementation gaps for subclasses to fill in and is deliberately incomplete. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo5'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between Integer and int?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- a) Integer is a class defined in the java. lang package, whereas int is a primitive data type defined in the Java language itself. Java does not automatically convert from one to the other. b) Integer can be used as an argument for a method that requires an object, whereas int can be used for calculations.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-23191438730233880732011-04-03T19:24:00.000+05:302011-07-27T12:48:16.256+05:30Java J2EE Interview Questions and Answers - Part 1<div class=Section1> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between procedural and object-oriented programs?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible within the object and which in turn assures the security of the code. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are Encapsulation, Inheritance and Polymorphism?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between Assignment and Initialization?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Assignment can be done as many times as desired whereas initialization can be done only once. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is OOPs?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Object oriented programming organizes a program around its data, i. e. , objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling access to code. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are Class, Constructor and Primitive data types?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of object according to the data the object can hold and the operations the object can perform. Constructor is a special kind of method that determines how an object is initialized when created. Primitive data types are 8 types and they are: byte, short, int, long, float, double, boolean, char. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is an Object and how do you allocate memory to it?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Object is an instance of a class and it is a software unit that combines a structured set of data with a set of operations for inspecting and manipulating that data. When an object is created using new operator, memory is allocated to it. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between constructor and method?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Constructor will be automatically invoked when an object is created whereas method has to be called explicitly. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are methods and how are they defined?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Methods are functions that operate on instances of classes in which they are defined. Objects can communicate with each other using methods and can call methods in other classes. Method definition has four parts. They are name of the method, type of object or primitive type the method returns, a list of parameters and the body of the method. A method’s signature is a combination of the first three parts mentioned above. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the use of bin and lib in JDK?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all packages. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is casting?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Casting is used to convert the value of one type to another. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>How many ways can an argument be passed to a subroutine and explain them?</span></b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>- An argument can be passed in two ways. They are passing by value and passing by reference. Passing by value: This method copies the value of an argument into the formal parameter of the subroutine. Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is the difference between an argument and a parameter?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- While defining method, variables passed in the method are called parameters. While using those methods, values passed to those variables are called arguments. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What are different types of access modifiers?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- public: Anything declared as public can be accessed from anywhere. private: Anything declared as private can’t be seen outside of its class. protected: Anything declared as protected can be accessed by classes in the same package and subclasses in the other packages. default modifier : Can be accessed only to classes in the same package. </span><span style='font-size:12.0pt; font-family:"Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is final, finalize() and finally?</span></b><span style='font-size:10.0pt;font-family:"Comic Sans MS"'>- final : final keyword can be used for class, method and variables. A final class cannot be sub classed and it prevents other programmers from sub classing a secure class to invoke insecure methods. A final method can’t be overridden. A final variable can’t change from its initialized value. finalize() : finalize() method is used just before an object is destroyed and can be called just prior to garbage collection. finally : finally, a key word used in exception handling, 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. For example, if a method opens a file upon exit, then you will not want the code that closes the file to be bypassed by the exception-handling mechanism. This finally keyword is designed to address this contingency. </span><span style='font-size:12.0pt;font-family: "Times New Roman","serif"'><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l4 level1 lfo1'><b><span style='font-size:10.0pt;font-family: "Comic Sans MS"'>What is UNICODE?</span></b><span style='font-size:10.0pt; font-family:"Comic Sans MS"'>- Unicode is used for internal representation of characters and strings and it uses 16 bits to represent each other.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></li> </ol> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com1tag:blogger.com,1999:blog-2834836888490179598.post-4879138932448133912010-09-19T16:17:00.001+05:302011-07-27T12:50:17.010+05:30Auto alignment of Multiple Divs (Assigning Multiple Divs using CSS)<div class=Section1> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal'>A very frequently asked question is how to align Multiple DIV’s using CSS.<o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal'><o:p> </o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal'>Here’s how to align multiple DIV’s. For simplicity sake, I will be aligning 10 divs in JSP.<o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><o:p> </o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><!</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>DOCTYPE </span><span style='font-size:10.0pt; font-family:"Courier New";color:navy;background:white;mso-highlight:white'>html </span><span style='font-size:10.0pt;font-family:"Courier New";color:gray; background:white;mso-highlight:white'>PUBLIC </span><span style='font-size: 10.0pt;font-family:"Courier New";color:navy;background:white;mso-highlight: white'>"-//W3C//DTD XHTML 1.0 Transitional//EN"</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:#3F7F5F;background:white;mso-highlight:white'>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New"'><o:p> </o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>html </span><span style='font-size:10.0pt; font-family:"Courier New";color:#7F007F;background:white;mso-highlight:white'>xmlns</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white; mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:"Courier New"; color:#2A00FF;background:white;mso-highlight:white'>"http://www.w3.org/1999/xhtml"</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>head</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:"Courier New";color:teal; background:white;mso-highlight:white'><</span><span style='font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;background:white;mso-highlight:white'>title</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"; color:black;background:white;mso-highlight:white'>Aligning Multiple DIV's using CSS</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal; background:white;mso-highlight:white'></</span><span style='font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;background:white;mso-highlight:white'>title</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:"Courier New";color:teal; background:white;mso-highlight:white'><</span><span style='font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;background:white;mso-highlight:white'>style </span><span style='font-size:10.0pt;font-family:"Courier New";color:#7F007F; background:white;mso-highlight:white'>type</span><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF;background: white;mso-highlight:white'>"text/css"</span><span style='font-size: 10.0pt;font-family:"Courier New";color:teal;background:white;mso-highlight: white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#3F7F7F'>.divOuter</span><span style='color:black'>{</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>display</span><span style='color:black'>:</span><span style='color:#2A00E1'>inline</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>text-align</span><span style='color:black'>:</span><span style='color:#2A00E1'>center</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>}</span></span><span style='font-size:10.0pt; font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New"'><o:p> </o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#3F7F7F'>.divInner1</span><span style='color:black'>{</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>border</span><span style='color:black'>: </span><span style='color:#2A00E1'>1px solid</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>float</span><span style='color:black'>:</span><span style='color:#2A00E1'>left</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>width</span><span style='color:black'>:</span><span style='color:#2A00E1'>400px</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>height</span><span style='color:black'>:</span><span style='color:#2A00E1'>150px</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>margin-left</span><span style='color:black'>:</span><span style='color:#2A00E1'>20px</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#7F007F'>margin-right</span><span style='color:black'>:</span><span style='color:#2A00E1'>3px</span><span style='color:black'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>}</span></span><span style='font-size:10.0pt; font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:teal'></</span><span style='color:#3F7F7F'>style</span><span style='color:teal'>></span></span><span style='font-size:10.0pt;font-family: "Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'></</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>head</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>body</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'><</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>div </span><span style='font-size:10.0pt;font-family: "Courier New";color:#7F007F;background:white;mso-highlight:white'>class</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white; mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:"Courier New"; color:#2A00FF;background:white;mso-highlight:white'>'divOuter'</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:#BF5F3F;background:white;mso-highlight:white'><%</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><b><span style='font-size:10.0pt; font-family:"Courier New";color:#7F0055;background:white;mso-highlight:white'>for </span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black; background:white;mso-highlight:white'>(</span><b><span style='font-size:10.0pt; font-family:"Courier New";color:#7F0055;background:white;mso-highlight:white'>int </span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black; background:white;mso-highlight:white'>i=0;i<10;i++){</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#BF5F3F'>%></span></span><span style='font-size:10.0pt; font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:"Courier New";color:teal; background:white;mso-highlight:white'><</span><span style='font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;background:white;mso-highlight:white'>div </span><span style='font-size:10.0pt;font-family:"Courier New";color:#7F007F; background:white;mso-highlight:white'>class</span><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF;background: white;mso-highlight:white'>'divInner1'</span><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white; mso-highlight:white'>First DIV</span><span style='font-size:10.0pt;font-family: "Courier New";color:#BF5F3F;background:white;mso-highlight:white'><%=</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white; mso-highlight:white'>i</span><span style='font-size:10.0pt;font-family:"Courier New"; color:#BF5F3F;background:white;mso-highlight:white'>%></span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'></</span><span style='font-size:10.0pt;font-family: "Courier New";color:#3F7F7F;background:white;mso-highlight:white'>div</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal;background:white; mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:#BF5F3F;background:white;mso-highlight:white'><%</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:black;background:white;mso-highlight:white'>} </span><span style='font-size:10.0pt;font-family:"Courier New";color:#BF5F3F;background: white;mso-highlight:white'>%></span><span style='font-size:10.0pt; font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'></</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>div</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt; font-family:"Courier New";color:teal;background:white;mso-highlight:white'></</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>body</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"; color:teal;background:white;mso-highlight:white'></</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background: white;mso-highlight:white'>html</span><span style='font-size:10.0pt;font-family: "Courier New";color:teal;background:white;mso-highlight:white'>></span><o:p></o:p></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-33195350044578099242010-09-06T20:57:00.002+05:302010-09-06T21:12:00.858+05:30I will be the great Contributor<div class="Section1"> <p class="MsoNormal"><span style="font-family:Arial;font-size:85%;"><span style=";font-family:Arial;font-size:10pt;" >Thanks for inviting me to this blog.for sharing my thoughts and getting the knowledge from others..<o:p></o:p></span></span></p> <p class="MsoNormal"><span style="font-family:Arial;font-size:85%;"><span style=";font-family:Arial;font-size:10pt;" >I am happy to join in this blog.<o:p></o:p></span></span></p> </div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-17415242384350431322010-05-17T16:20:00.001+05:302011-07-27T12:49:20.289+05:30Freewares/ Free Softwares 13 May 2010<div class=Section1> <div id=ygrp-mlmsg> <div style='z-index:1' id=ygrp-msg> <div id=ygrp-text> <p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>STOPzilla!<br> <br> STOPzilla! is anti-spyware Solution. It can detect, block, and quarantine Spyware and Adware in real time.Its features include: On-demand & automatic Spyware scanning; Updates automatically for optimal protection; Pop-up protection - intercepts and destroys all forms of Pop-ups while letting user-requested to Popup; Kills Browser Hijackers, removes rootkits, prevents botnet attacks; Blocks Phishing Attacks, protects from malicious Web sites; Clears Cookies & History. <br> <br> STOPzilla! for Windows 7, VistaTM 32/64bit, 98, Me, 2000 and XP can be downloaded at <a href="http://www.stopzilla.com/download/STOPzilla_Setup.exe">http://www.stopzilla.com/download/STOPzilla_Setup.exe</a><font color=navy><span style='color:navy'> </span></font><br> <br> The developers aver that STOPzilla! would protect a PC from the moment it is switched on, and claim that the utility has been downloaded millions of times.<br> <br> Lunascape<br> <br> Lunascape is a triple engine browser, for web designers and developers. With it you can choose the right engine to overcome web-browser compatibility issues, long loading times, and messed up websites display. You need only 2 clicks to change your engine! Features include a "split tab display" to view a Web page in three rendering engines side-by-side to easily check the browser compatibility. Customizable - more than 100 features can be customised; Choice of display on toolbars, the look of of your browser can be changed in a snap - about 200 skin designs to choose from and create your own too. <br> <br> The 8.35 MB Lunascape v6.1.2.21284 (22 Apr 2010) for Win XP/2003/Vista/Windows7 can be downloaded at <a href="http://www.lunascape.tv/">http://www.lunascape.tv/</a><font color=navy><span style='color:navy'> </span></font><br> <br> It has been downloaded over 15 million times, available globally in 11 languages.<br> <br> File Finder<br> <br> Locate32 is a file finder which works by indexing all your files on your hard disk drive and provides almost instant access to them. It can be used to find files from your hard drives and other locations. Locate32 uses databases to store information about directory structures and uses these databases in its searches. The use of these databases provides very fast searching speed. The software includes a dialog based application as well as console programs which can be used to both update and access databases. Supported operation systems are Windows 98/ME/NT4/2000/XP/<st1:place w:st="on">Vista</st1:place>. <br> <br> You can download Locate32 for your OS at <a href="http://locate32.net/content/view/18/31/">http://locate32.net/content/view/18/31/</a><font color=navy><span style='color:navy'> </span></font><br> <br> The developer invites enthusiastic persons who are willing to help with this project. You can get in touch with him at <a href="http://locate32.net/component/option,com_contact/task,view/contact_id,2/Itemid,29/">http://locate32.net/component/option,com_contact/task,view/contact_id,2/Itemid,29/</a><br> <br> -----------------------------------------------------<br> <br> Please suggest a utility to list and back up the drivers in my PC.<br> <br> You could try Double Driver v4.0 which can be downloaded at <br> <a href="http://www.boozet.org/dd.htm">http://www.boozet.org/dd.htm</a><font color=navy><span style='color:navy'> </span></font> It lets you view all the installed <br> drivers, back up, restore, save, and print the select ones.<br> <br> ---------------------------------------------------------<br> <br> QUOTE TO MULL OVER<br> <br> You can do anything in this world if you are prepared to take the consequences.<br> <br> <st1:place w:st="on">W. Somerset</st1:place> Maugham<br> (1874-1965, British novelist, playwright)<br> <br> <br> <font color=white><span style='color:white'><o:p></o:p></span></font></span></font></p> </div> </div> </div> </div> <!--~-|**|PrettyHtmlEnd|**|-~--> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-3732818484341530462010-04-15T08:39:00.001+05:302011-07-27T12:49:20.290+05:30Freeware / Free Software 08 Apr 2010<div class=Section1> <div id=ygrp-mlmsg> <div style='z-index:1' id=ygrp-msg> <div id=ygrp-text> <p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>FlipAlbum<br> <br> FlipAlbum Standard with a with a natural and intuitive interface is a digital photo album utility to organize your digital images, better. Easy to use, yet highly customizable, FlipAlbum can automatically create realistic, book-like albums. The features include - Auto Flip function; Auto Slide Show - present the contents of your book as a slide show with auto-play. The slide show options include variable time interval between slides, transition effects, number of rows and columns of photos, etc; Realistic 3D Page-Flipping provides a pleasant viewing experience, Multi-page rapid flipping for album browsing; Preview; Supported Multimedia Formats include: Image: BMP, GIF, JPG, PCX, WMF, ICO, PNG, PCD, PSD and TIF; Video: AVI, MPEG1, WMV; and Audio: MIDI, WAV, MP3 and WMA. <br> <br> FlipAlbum Standard v7.0.4 for Windows 2000, XP, and <st1:place w:st="on">Vista</st1:place> can be downloaded at <a href="http://www.flipalbum.com/fahome/product/fastd/download/">http://www.flipalbu<wbr>m.com/fahome/<wbr>product/fastd/<wbr>download/</a><br> <br> Please note the standard version (freeware) of FlipAlbum may not include all the features. <br> <br> Essential PIM<br> <br> Essential PIM, a Personal Information Manager, lets you keep all your information in the electronic format. The fully Netbook compatible Essential PIM can store your appointments, tasks, to do lists, notes, contacts and email messages in a graphical and easily accessible form. The freeware edition of Essential PIM offers quite a lot of features to make it an interesting and effective choice for many. Among them are an easy to use scheduler, contact and to-do lists, "EPIM Today" option, overview in a single window of a user customizable schedule timeline - all readily accessible from the navigation pane; Versatile import/export capabilities; Scheduler: Color-coded, easy to read day/week/month schedules; To Do List: Categories, priority, completion status, due date, and reminder fields; Tree-like multilevel structure, unlimited number of folders and notes; Contact Manager<br> Wide selection of fields - adding a new data field to a contact is easy and quick; Fast search and sorting; <br> <br> EssentialPIM v3.23 can be downloaded at <a href="http://www.essentialpim.com/download/essentialpimpro2.exe">http://www.essentia<wbr>lpim.com/<wbr>download/<wbr>essentialpimpro2<wbr>.exe</a><br> <br> A portable edition can be downloaded at <a href="http://www.essentialpim.com/download/essentialpimproport2.exe">http://www.essentia<wbr>lpim.com/<wbr>download/<wbr>essentialpimprop<wbr>ort2.exe</a><br> <br> XMind<br> <br> XMind is a brainstorming and mind mapping software to share your ideas with others. It's easy-to-use, just double-click to create and edit topics anywhere on the map. The Drag-and-drop feature helps to reorganize topics, move markers, take a mapshot, and add attachments. You can even search on topic with Google and drag images into your map without leaving the working window. Its intuitive design and powerful features lets you focus on your work and share it easily with others by exporting it through popular formats such as PDF, Word and PowerPoint. The other features include Fishbone Diagram, Spreadsheet, Markers, Inline Notes, Hyperlink / Attachments, Topic As A Map (Drill Down), Spell Checker, Legend and Filtering, and Export to Html/ PNG / GIF/JPEG/BMP.<br> <br> XMind v3.1.1 can be downloaded at <a href="http://www.xmind.net/downloads/">http://www.xmind.<wbr>net/downloads/</a> by choosing the appropriate link <br> for your specific operating system.<br> <br> ============<wbr>=========<wbr>=========<wbr>=========<wbr>=========<wbr>=========<wbr>===<br> <br> Please suggest a freeware to convert the video files to 3gp. <br> <br> You could try Format Factory which can be downloaded at <a href="http://www.formatoz.com/">http://www.formatoz<wbr>.com/</a><br> <br> ------------<wbr>---------<wbr>---------<wbr>-------<br> <br> QUOTE TO MULL OVER<br> <br> All humanity is one undivided and indivisible <br> family, and each one of us is responsible for <br> the misdeeds of all the others. I cannot detach<br> myself from the wickedest soul.<br> <br> -Mohandas K. Gandhi (1869-1948) <br> <br> -------<font color=white><span style='color:white'><o:p></o:p></span></font></span></font></p> </div> </div> </div> </div> <!--~-|**|PrettyHtmlEnd|**|-~--> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-80042968216062289292010-03-18T18:37:00.001+05:302011-07-27T12:50:54.468+05:30parseInt('08') and parseInt('09') does not work in javascript<div class=Section1> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'>Few of you might know this logic before. We would like to just let everyone know the lessons learnt from our team.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>When we were looking into an issue reported by customers on a date being passed wrongly even though when we key in a correct date, we figured out that parseInt(‘08’) and parseInt(‘09’) will give you a wrong value in javascript.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>This is because when you say parseInt (string), it considers by default octal<font color=black><span style='color:black'> as numbers</span></font>. Octal numbers ends with 07. <o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>08 and 09 are considered to be invalid numbers in octal.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p> <p class=MsoNormal><b><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS";font-weight:bold'>Solution:<o:p></o:p></span></font></b></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>Its always safe to give the base value with the method.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'>parseInt<font color=black><span style='color:black'> </span></font>(‘08’,10) will consider the base as decimal.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'>Refer to below link for the actual syntax:<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'><a href="http://www.w3schools.com/jsref/jsref_parseInt.asp">http://www.w3schools.com/jsref/jsref_parseInt.asp</a><o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size: 10.0pt;font-family:"Comic Sans MS"'> <font color=black><span style='color:black'><o:p></o:p></span></font></span></font></p> <p class=MsoNormal><font size=2 color=black face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:black'>Please share this info with others as well.</span></font><font size=2 color=navy face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS"; color:navy'><o:p></o:p></span></font></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-15588251696569960972010-03-01T15:59:00.002+05:302010-03-01T16:02:07.861+05:30How to check what are the HTTP and HTTPS port in WPS from logs and Admin consoleHi,<br /><br />There would be some case, where we dont have access to the admin console, but have only access to the logs. In this case how can we find the HTTP and HTTPS port for default and admin.<br /><br />To find the ports using Admin Console:<br /><br />start the server, go to Servers->Application servers > server1 > Ports, scroll down to see the screenshot below<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWJmNWMsfuZFI4b7e9E9v6y0DNEZLczRGRuDY08hpP-Hfb32Q9jGpfQf7fdLohcQdTk2mHzJFFk1YrTk5dbnm0EqNNBM0o4JBbjddKNOWo-5DLC5rDxLHvu09k3_HT8TrzGLj1_AGFfk0/s1600-h/ports3.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 118px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWJmNWMsfuZFI4b7e9E9v6y0DNEZLczRGRuDY08hpP-Hfb32Q9jGpfQf7fdLohcQdTk2mHzJFFk1YrTk5dbnm0EqNNBM0o4JBbjddKNOWo-5DLC5rDxLHvu09k3_HT8TrzGLj1_AGFfk0/s400/ports3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5443610951539410834" /></a><br /><br />WC admin host: HTTP port for admin console<br /><br />WC admin host secure: HTTPS port for admin console<br /><br />WC defaulthost: HTTP port for default host<br /><br />WC defaulthost secure: HTTPS port for default host<br /><br />To find the ports using the System out logs:<br /><br />Search for the below sentence in the logs<br /><br />“Web Module WebSphere Admin File Transfer Application has been bound to admin_host” - [*:HTTP,*:HTTPS]. This is for the admin HTTP and HTTPS ports<br /><br />“Web Module Default Web Application has been bound to default_host” – [*:HTTP,*:80,*:HTTPS]. This is for the default HTTP and HTTPS ports<br /><br />-SudanUnknownnoreply@blogger.com1tag:blogger.com,1999:blog-2834836888490179598.post-819701780070625242010-03-01T15:56:00.001+05:302010-03-01T15:58:12.219+05:30Invoking PeS through plain Java<div class=Section1> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi All,<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Today I would like to explain the POC that I was trying last week. Generally for connecting to PeS we have three ways as below<o:p></o:p></span></font></p> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>File Layout<o:p></o:p></span></font></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Web Services Application Messaging<o:p></o:p></span></font></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Component Interface<o:p></o:p></span></font></li> </ol> <p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>File Layout:</span></font></b></strong><o:p></o:p></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>This is used to connect to PeS when we need file based polling integration. Generally the type of file used would be xml or csv’s. This method is still very popularly used in many applications.<o:p></o:p></span></font></p> <p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Web Services Application Messaging:</span></font></b></strong><o:p></o:p></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>This is a plain Web Service communication. Messaging architecture for both synchronous and guaranteed delivery asynchronous integration into and out of the Integration Broker<o:p></o:p></span></font></p> <p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Component Interface:</span></font></b></strong><o:p></o:p></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>This is Object-oriented, request/reply, component architecture that encapsulates PeopleSoft data and communicates.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I am interested in using Component Interface for PeS connectivity. Generally in market lots of adapters are available for doing this. The leaders are Oracle and IBM, they provide adapters for connecting to PeS. So, the developer doesnt have to code or worry about the PeS connectivity, they just need to send the data and get back the data they need. This makes life simple for developers<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I have used IBM adapter in Websphere process server for PeopleSoft. The advantage i could see using is just easy development. But is it worth paying huge money for just getting this advantage. Why cant we develop our own component in process server which does this functionality.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>The other advantage that adapter give is that we can discover the CI available in the PeS and just use the operation we want. All these things can be done using a good UI wizard. When we go for our own java implementations, we have to open each CI and create a java template for each.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>We will go step by step tutorial for doing this.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>PSJOA.jar -> This is the interface jar file which would help Java to interact with PeopleSoft through a component interface. It will be available in %PS_HOME%\class directory.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Create a record with a single field and put this on a page. Create a component and move it to a component interface. The component interface should have the following methods :- Cancel, Create, Find, Get and Save.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Now, open the component interface. Click on Build -> PeopleSoft APIs. This process would validate all the component interface and you will get some errors in this process. You can just skip the errors and continue the process. Select the “java” class option and specify the target location where the java files needs to be placed. For any component interface, PeopleSoft create four files like for CI name JobData, it would create<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>IJobDataCI.java<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>IJobDataCICollection.java<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>JobDataCI.java<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>JobDataCICollection.java<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>So, after compiling this, pack all the class files into a jar file, say PSFTCI.jar. So, now we have two jar’s PSJOA.jar and PSFTCI.jar<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>The next step is to create a java template. Open the component Interface, right click and click on generate a Java template. So, this would be saving your java template for that CI in some temp folder. Generally the Java template name would be the CI name itself, say JobDataCI.java<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Now if we open the java template, we can see a code like<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>“oSession.connect(1, strAppServerPath, strOperatorID, strPassword, null)”<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Here we can give the server name, username and password for the PeS we are trying to connect. This would take the default port. If we need to modify this port number to some specific value and have all these data coming from properties fil, we need to follow the below steps.<o:p></o:p></span></font></p> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>change the above code to “oSession.connect(1, strAppServerPath, strOperatorID, strPassword, null)”<o:p></o:p></span></font></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>create a property file pstools.properties in the java project with the following key names<o:p></o:p></span></font></li> </ol> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>server_port=<server_port><br> server_name=<server_name><br> logon_id=<logon_id><br> logon_password=<logon_password><o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>That’s it, we are done. Just need to use the setter and getter methods in the java template to select or update the date in PeS.<o:p></o:p></span></font></p> <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>This finishes the tutorial for connecting to PeS through java.<o:p></o:p></span></font></p> <p><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt; font-weight:bold'>-<st1:country-region w:st="on"><st1:place w:st="on">Sudan</st1:place></st1:country-region><o:p></o:p></span></font></b></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p> </div> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-1621042593772764142009-11-24T18:47:00.003+05:302009-11-24T19:27:45.197+05:30Use of Indexes in Foreign Key<div class="Section1"> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style=";font-family:Times New Roman;font-size:100%;" ><span style="font-size:12;">Normally we used to avoid creating indexes in the foreign keys, with unindexed foreign</span></span></p><p class="MsoNormal" style=""><span style=";font-family:Times New Roman;font-size:100%;" ><span style="font-size:12;"> key columns; Oracle will lock the child table<o:p></o:p></span></span></p> <p class="MsoNormal" style=""><span style=";font-family:Times New Roman;font-size:100%;" ><span style="font-size:12;"><o:p> </o:p></span></span></p> <p class="MsoNormal" style=""><span style=";font-family:Times New Roman;font-size:100%;" ><span style="font-size:12;"><o:p> </o:p></span></span></p> <p class="MsoNormal" style=""><span style="font-size:100%;"><b><span style=";font-family:Times New Roman;" ><span style="font-weight: bold;">WHEN TO INDEX:<o:p></o:p></span></span></b></span></p> <p class="MsoNormal" style=""><span style="font-size:100%;"><b><span style=";font-family:Times New Roman;" ><span style="font-weight: bold;"><o:p> </o:p></span></span></b></span></p> <pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" >In addition to the table lock issue that might hit you, an unindexed foreign key<br />is bad in the following cases as well:<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Wingdings;font-size:100%;color:black;" ><span style=";font-family:Wingdings;color:black;" >à</span></span><span style="font-size:100%;color:black;"><span style="color:black;"> <b><span style="font-weight: bold;">When you have an on delete cascade and have not indexed the child table.</span></b> <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > For example EMP is child of DEPT. <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > Delete deptno = 10 should cascade to EMP.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > If deptno in emp is not indexed, you will get a full table scan of EMP.<br /> This full scan is probably <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > undesirable and if you delete many rows from the parent table,<br /> the child table will be scanned once for each parent row deleted.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Wingdings;font-size:100%;color:black;" ><span style=";font-family:Wingdings;color:black;" >à</span></span><span style="font-size:100%;color:black;"><span style="color:black;"> <b><span style="font-weight: bold;">When you query from the PARENT to the CHILD.</span></b> <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > Consider the EMP, DEPT example again. It is very common to query the EMP table<br />in the context of a deptno. <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > If you frequently query:<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > <o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > select * from dept, emp<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > where emp.deptno = dept.deptno and dept.deptno = :X;<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" > to generate a report or something, you'll find not having the index in place<br />will slow down the queries.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style="font-size:100%;"><b><span style=";font-family:Times New Roman;color:black;" ><span style="">WHEN NOT TO INDEX:<o:p></o:p></span></span></b></span></pre><pre><span style="font-size:100%;"><b><span style=";font-family:Times New Roman;color:black;" ><span style=""><o:p> </o:p></span></span></b></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" >So, when do you NOT need to index a foreign key? In general when the following<br />conditions are met:<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Wingdings;font-size:100%;color:black;" ><span style=";font-family:Wingdings;color:black;" >à</span></span><span style="font-size:100%;color:black;"><span style="color:black;"> You do NOT delete from the parent table. (Especially with delete cascade)<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Wingdings;font-size:100%;color:black;" ><span style=";font-family:Wingdings;color:black;" >à</span></span><span style="font-size:100%;color:black;"><span style="color:black;"> You do NOT update the parent table’s unique/primary key value.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Wingdings;font-size:100%;color:black;" ><span style=";font-family:Wingdings;color:black;" >à</span></span><span style="font-size:100%;color:black;"><span style="color:black;"> You do NOT join from the PARENT to the CHILD (like DEPT->EMP).<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" >If you satisfy all three above, feel free to skip the index, it is not needed.<br />If you do any of the above, be aware of the consequences.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" ><o:p> </o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" >As for the effect of an index on a foreign key index on an OLTP system<br />-- it depends.<o:p></o:p></span></span></pre><pre><span style=";font-family:Courier New;font-size:100%;color:black;" ><span style=";color:black;" >If you not update the foreign key the overhead is during the insert<br />and might not be noticed. If you update it frequently, it might be worse<o:p></o:p></span></span></pre> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >We will go through the following example which is having the delete statement which deletes from the parent table which is having a reference with the child table.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >Example without index on child table<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-----------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Create a Parent Table.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >CREATE TABLE PARENT(NO NUMBER);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Insert some sample data in to the Parent table.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >INSERT INTO PARENT(NO) SELECT ROWNUM FROM ALL_OBJECTS WHERE ROWNUM < 10001; <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Add Primary Key Constraint to it.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ALTER TABLE PARENT ADD CONSTRAINT PARENT_PK PRIMARY KEY (NO);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Create a Child table.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >CREATE TABLE CHILD(NO NUMBER,NAME VARCHAR2(10));<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Insert some sample records wit the value from the parent table<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >INSERT INTO CHILD(NO,NAME) <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SELECT A.NO,A.NAME FROM<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >(SELECT NO,'RAFEEK' AS NAME FROM PARENT WHERE ROWNUM < 10000)A, (SELECT 1 FROM DUAL<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > UNION ALL<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > SELECT 2 FROM DUAL);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Commit the transaction<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT; <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Add foreign key constraint to it.<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ALTER TABLE CHILD ADD CONSTRAINT REFPARENT FOREIGN KEY (NO) REFERENCES PARENT (NO);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- Analyze both the tables (Gather Statistics)<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE CHILD COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE PARENT COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style="font-size:100%;"><b><span style=";font-family:Courier New;" ><span style="font-weight: bold;">--NOW WE WILL CHECK THE PERFORMANCE PROBLEM<o:p></o:p></span></span></b></span></p> <p class="MsoPlainText"><span style="font-size:100%;"><b><span style=";font-family:Courier New;" ><span style="font-weight: bold;"><o:p> </o:p></span></span></b></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >-- delete All the records from the child table<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DELETE FROM CHILD;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE CHILD COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >--TO CAPTURE THE TIMING<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SET TIMING ON<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >--DELET FROM THE PARENT TABLE<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DELETE FROM PARENT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SET TIMING OFF<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >--NOTE DOWN THE TIME TAKEN<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >---------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <div style="border-style: none none solid; padding: 0in 0in 8pt;"> <p class="MsoPlainText" style="border: medium none ; padding: 0in;"><span style=";font-family:Courier New;font-size:100%;" >Example with Index on child table<o:p></o:p></span></p> </div> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DROP TABLE CHILD;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DROP TABLE PARENT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >CREATE TABLE PARENT (NO NUMBER);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >INSERT INTO PARENT (NO) SELECT ROWNUM FROM ALL_OBJECTS WHERE ROWNUM < 50001; <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ALTER TABLE PARENT ADD CONSTRAINT PARENT_PK PRIMARY KEY (NO);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >CREATE TABLE CHILD (NO NUMBER, NAME VARCHAR2 (10));<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >INSERT INTO CHILD (NO, NAME) <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SELECT A.NO, A.NAME FROM<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >(SELECT NO,'RAFEEK' AS NAME FROM PARENT WHERE ROWNUM < 10000)A, (SELECT 1 FROM DUAL<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > UNION ALL<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > SELECT 2 FROM DUAL);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" > <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ALTER TABLE CHILD ADD CONSTRAINT REFPARENT FOREIGN KEY (NO) REFERENCES PARENT (NO);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >CREATE INDEX CHILD1_IX ON CHILD (NO);<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE CHILD COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE PARENT COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE INDEX CHILD1_IX COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DELETE FROM CHILD;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >ANALYZE TABLE CHILD COMPUTE STATISTICS;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SET TIMING ON<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >DELETE FROM PARENT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >COMMIT;<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >SET TIMING OFF<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >--NOTE DOWN THE TIME TAKEN<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >Thanks & Regards, <o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" >Mohamed Rafeek, S<o:p></o:p></span></p> <p class="MsoPlainText"><span style=";font-family:Courier New;font-size:100%;" ><o:p> </o:p></span></p> </div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-76938634907835635392009-11-23T19:02:00.000+05:302009-11-24T19:47:48.599+05:30SQL DBO SQL Server Database Object Owner dbo<div class=Section1> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>Who is "dbo</span></font><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>”</span></font><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>?<o:p></o:p></span></font></p> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>There are two "dbo" in SQL Server, one is Database Owner and one is Database Object Owner, dbo is a user with permissions to perform all activities in a database. Each database has this special user called dbo, <b><span style='font-weight:bold'>user dbo cannot be deleted and is always present in every database</span></b>. Database owners and object owners have no separate logins the user dbo is part of sysadmin fixed role or db_owner fixed database role. Any objects created by members of the sysadmin fixed server role (or by the dbo user) belong to dbo.<o:p></o:p></span></font></p> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>Objects created by any other user who is not also a member of the sysadmin fixed server role including members of the db_owner fixed database role belong to the user creating the object, not dbo. The creator of an object is granted all permissions implicitly but must give explicit permissions to other users before they can access the object. When accessing objects an owner name should be qualified before object name like "object_owner.object_name"<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:3.75pt; margin-bottom:0in;margin-left:3.75pt;margin-bottom:.0001pt;line-height:15.0pt; background:white'><code><font size=1 color=black face="Lucida Console"><span lang=EN-IN style='font-size:9.0pt'>SELECT * FROM Object_Owner.Table_Name</span></font></code><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'><o:p></o:p></span></font></p> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>If object owner is not specified when referencing the object then SQL Server looks for objects owned by current user and then objects owned by dbo, if the object is not owned by current user or dbo then object owner must be specified other wise an error will occur. Windows NT users and groups can be owner of objects. If you want to remove a database owner from current database the objects owned must be dropped or ownership must be changed.<o:p></o:p></span></font></p> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>Check these two stored procedures in books online.<o:p></o:p></span></font></p> <p class=MsoNormal style='margin:3.75pt;line-height:15.0pt;background:white'><font size=1 color="#666666" face=Verdana><span lang=EN-IN style='font-size:9.0pt; font-family:Verdana;color:#666666'>sp_changeobjectowner <br> sp_changedbowner<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-IN style='font-size: 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p> </div> Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0tag:blogger.com,1999:blog-2834836888490179598.post-28357965371978443522009-09-22T18:30:00.010+05:302009-09-22T19:44:25.202+05:30Introduction about SLD, Integration Builder and SC<strong></strong><div align="justify"><br /><span style="font-family:arial;"><span style="font-size:85%;"><strong>Session 2: Intro about SLD, Integration Builder and SC</strong><br /><br /><br />As we know we will have different type of environments in corporate like development, QA and production. So we will have SAP in bunch of servers for each environment which is known as SLD (system landscape directory). The different client codes in each environment represent sub systems in it. For ex: one Dev system may be there which has 100 client code for UAT, 210 for exec etc., We will have different R/3 servers and XI servers. An R/3 Server will have an ABAP engine with small portion of J2EE engine to communicate with XI servers and vice - versa.<br /><br />We can use SAPGUI for logging in to any of the systems (R/3 or XI). Each and every thing in SAP will have some unique code which can be used directly for opening it. So for accessing Integration Builder we need to type "<em><strong>sxmb_ifr</strong></em>" code in transaction field.<br /><br />Integration Builder is of two views. They are Design (Integration Repositary) and Configuration (Integration DIrectory). Integration Builder is developed in Java Web Start and it runs in J2EE engine. For creating any objects we use Design: Integration Builder (IR) and these are some thing like Raw objects but it will be configured and structured in Configuration: Integration Builder (ID).<br /><br />For Ex:<br /></span></span></div><span style="font-family:arial;font-size:85%;"><br /><a href="http://picasaweb.google.co.in/lh/photo/1FFPJXSQFHI1q3L0bLCcqQ?authkey=Gv1sRgCIGgiNWu14vlswE&feat=embedwebsite"><img id="BLOGGER_PHOTO_ID_5384280318237945474" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 360px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEwTLKs-8S9jvo42Sz9YXDCs_b_3bmVwZCYiqC-1fdr_xJeGYQ5PaX_DVDm3H6eDZ8xQpH-UfGs-_x0r_L5R763qNDiqmGObpgqLy0Vj2-lH5H6H1M0TsY7T8YXBozWZCHcXOe0Ls-aCaE/s400/ExamplePlaceOrderR.JPG" border="0" /></a>When a Function imported from R/3 in to XI as a web service it will automatically create JNI, EJB, Servlet and Web service for it. After that it will be in IR. We will configure it in ID as scenarios like VB to SAP etc in structured manner.<br /></span><p align="justify"><span style="font-family:arial;font-size:85%;">Software Component is a logical unit of any release. For example you want to release this place order function as software then just build it and release as a software component which can be distributed across. SAP GUI is a software component. </span></p><p align="justify"><span style="font-family:arial;font-size:85%;">Shortly, </span></p><p align="justify"><span style="font-family:arial;font-size:85%;">1. SLD is a System landscape directory where SAP resides</span></p><p align="justify"><span style="font-family:arial;font-size:85%;">2. Integration Repository is Design: Integration Builder and Integration Directory is Configuration: Integration Builder which is for creating objects and configuring it for usage.</span></p><p align="justify"><span style="font-family:arial;font-size:85%;">3. Software Component is a logical unit of any release. </span></p>Mohanhttp://www.blogger.com/profile/04845674887431822308noreply@blogger.com0