Designed a class that demonstrates the use of constructor and destructor in java - BSC IT PRACTICALS

Friday, February 9, 2018

Designed a class that demonstrates the use of constructor and destructor in java


class xyz
{
xyz()
{
System.out.println("Constructor method........");
}
protected void finalize()
{
System.out.print("Garbage Collected.....");
}
}
class prac4B
{
public static void main(String args[])
{
xyz ob=new xyz();
ob=null;
System.gc();
}
}

32 comments:

  1. Output is required to understand the program

    ReplyDelete
  2. Working in a construction site has a lot of dangers and risks. This is because being a construction worker, you will need to do a lot of dangerous works such as cutting, riveting, sawing, building, and all other sorts of industrial activities. No matter how technically advanced the safety measures and work protocols are, there will always be a possibility that an accident will happen. آرین سازه

    ReplyDelete
  3. Auto repair service at affordable rates is not easy to get despite the fact that there are dozens of these shops in every neighborhood. The main problem regarding the high costs of automotive repair is the lack of availability of quality facilities. Most shops have a simple infrastructure and they have to use external facilities that add up to the check that you pay at the end of the repair. Chemical Hose

    ReplyDelete
  4. Learn 3 of the top 9 reasons why the real estate bubble is going to burst before it is too late! If you own real estate or are thinking of buying real estate then you better pay attention, because this could be the most important message you receive this year regarding real estate and your financial future. fha loan limits nevada

    ReplyDelete
  5. โดยอัดน้ำยาฉีดปลวกใต้ดิน ฉีดปลวกทั้งภายใน และภายนอกบ้าน วางเหยื่อล่อปลวก และ วางท่อปลวก พร้อมทั้งให้คำปรึกษาตามความต้องการของลูกค้าได้ทุกรูปแบบ. ประเมินราคาฟรี ไม่มีค่าใช้จ่ายใดๆ รับกำจัดปลวกทั้งจังหวัดเชียงใหม่ ลำพูน ลำปาง เชียงราย พะเยา แพร่ เรารับงานทุกตำบล ทุกอำเภอ ในเชียงใหม่ , อำเภอเมืองเชียงใหม่ , ศรีภูมิ , พระสิงห์ , หายยา , ช้างม่อย , ช้างคลาน , วัดเกต , ช้างเผือก , สุเทพ , แม่เหียะ , ป่าแดด , หนองหอย , ท่าศาลา , หนองป่าครั่ง , ฟ้าฮ่าม , ป่าตัน , สันผีเสื้อ , หางดง , อำเภอแม่ริม , อำเภอสะเมิง , อำเภอสันป่าตอง , อำเภอสันกำแพง , อำเภอสันทราย , สันทรายหลวง , สันทรายน้อย , สันผักหวาน , หนองควาย , บ้านปง , น้ำแพร่ ราคากำจัดปลวกเชียงใหม่

    ReplyDelete
  6. Working in a construction site has a lot of dangers and risks. This is because being a construction worker, you will need to do a lot of dangerous works such as cutting, riveting, sawing, building, and all other sorts of industrial activities. No matter how technically advanced the safety measures and work protocols are, there will always be a possibility that an accident will happen. hiking

    ReplyDelete
  7. Immediately a bit of guests will continue across hotel rooms and obtain tied bus excursions, however, many with all the fancy car applications provide your own tour specialist. That just might help you browse through the neighborhood well you could an individual’s chose chauffeur. ??? ???? buy steroids online

    ReplyDelete
  8. Construction plays a big role in the urban set up of our lives. Be it the constructing of roads or buildings, construction is the basic root of the rise of the everyday needs. Construction leads to the building of a house where we reside. Towing Company Lake Charles LA

    ReplyDelete
  9. Plumbing troubles at home are inevitable no matter how much we dread such events to occur. Your sink might completely stop during Christmas, Thanksgiving Day or any special day. monroe plumbing

    ReplyDelete
  10. The first real step towards becoming a professional plumber is undertaking the relevant plumbing courses. Plumbing requirements are varied and emergencies like burst pipes can happen in all setups, business and domestic areas alike. Basically there are three types of plumbing courses that you could enroll into Online Plumbing Courses These types of courses can be applied over the internet. best plumber new orleans

    ReplyDelete
  11. Construction involves workers, transport vehicles, heavy equipment, and other necessary materials like cement bags, hollow blocks, steel rods etc. Construction is a risky work and serious injury or death of workers or damage to property is a common issue. New Caney asphalt paving

    ReplyDelete
  12. Choosing a locally-owned plumbing company for your plumbing job can be very beneficial for you. Read to find out what some of the benefits are... plumber riverton ut

    ReplyDelete
  13. It is vital to know a few important details about your home's plumbing system. In fact, everything in this article can also be applied to commercial properties as well. Protect your investment and prolong the life of your plumbing with these helpful tips. plumbers bountiful utah

    ReplyDelete
  14. Plumbing is one of the professions that are highly rewarding and evergreen as the plumbing system is an essential part of every home, whether new or old. A plumbing system is meant for bringing and distributing freshwater in the home for all needs, and for draining the wastewater out of the home. The quality of plumbing system is also important for the durability of the building as a bad drainage or leaking water can damage the building quite before its useful life as per design. plumber orem ut

    ReplyDelete
  15. Working in a construction site has a lot of dangers and risks. This is because being a construction worker, you will need to do a lot of dangerous works such as cutting, riveting, sawing, building, and all other sorts of industrial activities. No matter how technically advanced the safety measures and work protocols are, there will always be a possibility that an accident will happen. concrete staining houston

    ReplyDelete
  16. At Tampa Bay Pavers in Tampa, Fl. we set your vision in stone. We offer the highest quality paving products and services at the most affordable price. We specialize in custom designs and expert installation of paver driveways, patios, pool decks, walkways, summer kitchens, fire pits and much more. Come see why we are the fastest growing pavers in Tampa Florida Pavers Tampa Florida

    ReplyDelete
  17. According to a recent Forbes magazine article, the economy is slowly rebounding while the housing and non-residential construction sectors continue to grow. For example, multi-family apartment construction grew 14 percent and the annual housing construction rate was 1.2 million in 2016. Below introduces the economic outlooks for construction jobs and the construction industry. kitchen remodeling

    ReplyDelete
  18. Local Landscaping Cranbourne is your premium local landscaping service in Cranbourne and the surrounding area. Our services include Landscape and Garden Design, Landscape Construction, Landscape Water Features, Landscape Lighting Installation, Landscape Maintenance Service, Gardening Service, Lawn Care Installation and Maintenance Services, including the area around your driveway. No job is too big or too small for your Cranbourne landscaping requirements. Call Local Landscaping Cranbourne today to discuss your requirements on (03) 5910 3000 Landscaping Cranbourne

    ReplyDelete
  19. The construction industry is growing at a rapid pace every day. Private and government investments are making it a booming market of the day. Even public investments have been incorporated into the scenario today which only makes the industry bigger. Trailer Repair

    ReplyDelete
  20. Yay google is my world beater helped me to find this great web site ! . kitchen remodeling ann arbor

    ReplyDelete
  21. There are some fascinating points in time in this article but I don’t know if I see all of them heart to heart. There may be some validity but I’ll take hold opinion till I look into it further. Good article , thanks and we would like more! Added to FeedBurner as properly home remodeling ann arbor

    ReplyDelete
  22. Working in a construction site has a lot of dangers and risks. This is because being a construction worker, you will need to do a lot of dangerous works such as cutting, riveting, sawing, building, and all other sorts of industrial activities. No matter how technically advanced the safety measures and work protocols are, there will always be a possibility that an accident will happen. MacDonald Watrobsky Group

    ReplyDelete
  23. Construction involves workers, transport vehicles, heavy equipment, and other necessary materials like cement bags, hollow blocks, steel rods etc. Construction is a risky work and serious injury or death of workers or damage to property is a common issue. realtor charlotte nc

    ReplyDelete
  24. Like any other working environment, those in the construction industry may experience work accidents from time to time. If the employee's injury can be directly attributed to the mistakes of the employer, these accidents can lead to successful construction accident claims. deck repair ann arbor mi

    ReplyDelete
  25. Open Wall construction is not limited to a single technique. The theories and principles behind the construction are unique, but the design uses existing methods and materials to allow for complete flexibility. handyman services ann arbor

    ReplyDelete
  26. Construction Project Management Software greatly improves the operational efficiency of contractors, builders and infrastructure developers. This in turn will lead to more profits as construction companies operate on a thin profit margin. The Ann Arbor Handyman

    ReplyDelete
  27. Construction Project Management Software greatly improves the operational efficiency of contractors, builders and infrastructure developers. This in turn will lead to more profits as construction companies operate on a thin profit margin. https://www.poolrepairtucsonaz.com/

    ReplyDelete
  28. It has always been a debate whether to buy new or used construction equipment. Smaller fleets prefer to buy used construction equipment as they attract less capital investments. Another reason for people to opt for used construction equipment is that they are sometimes as good as new and come at a very heavy discounted price as compared to that offered at the showrooms. 55 community florida

    ReplyDelete
  29. Are you considering putting your house on the market, or are you just looking to improve the appearance of your home on a budget houseplants

    ReplyDelete
  30. The plumbing profession has exploded massively in popularity over the past few decades and there is now a plumbing course in nearly every town. For anyone looking for a change in profession, the plumbing occupation has grown into an enticing prospect. Plumbing skills generally need a lot of time to attain and as such you should be able to spend the required amount of time in order to get qualified and competent. After completing an accredited plumbing course, you should have the required skills to perform on any type of plumbing work. Landscaping Cranbourne

    ReplyDelete
  31. Construction plays a big role in the urban set up of our lives. Be it the constructing of roads or buildings, construction is the basic root of the rise of the everyday needs. Construction leads to the building of a house where we reside. Tow Truck

    ReplyDelete