Sponsored Links


Results 1 to 2 of 2

Thread: OPERATOR OVERLOADING,UFFER OVERFLOW and MEMORY LEAKAGE,MULTI THREADED and CONCURRENCY

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    22 OPERATOR OVERLOADING,UFFER OVERFLOW and MEMORY LEAKAGE,MULTI THREADED and CONCURRENCY

    Sponsored Links1


    What is OPERATOR OVERLOADING?

    What is the difference between OBJECT BASED LANGUAGE and Object Oriented Language?

    What is the difference between STATIC ANALYSIS and DYNAMIC ANALYSIS?

    What is the difference between BUFFER OVERFLOW and MEMORY LEAKAGE?

    Sponsored Links

    hat is the difference between ENTERPRISE APPLICATION and WEB APPLICATIONS?

    What is the diffence between MULTI THREADED and CONCURRENCY?

    What is JAR file? What is the object of creating this file?

    What is GARBAGE COLLECTOR?

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    1) Operator overloading is to allow the same operator to be bound to more than one implementation. In C++, the mathematical, logical, relational operators are already overloaded for built-in data types. In order to use these operators with user-defined data types such as classes, we have to overload these operators. In java, operator overloading is not allowed.

    2) Object based programming language is a language that does not support all the concepts of Object oriented programming such as inheritance and polymorphism. Object based programming language uses object but does not support inheritance and polymorphism whereas object oriented programming language supports all the concepts of object oriented programming. Java script and VB (Visual Basic) are object based languages whereas Java, C++, C# are object oriented languages.

    3) Static binding occurs at compile time whereas dynamic binding occurs at run time. The static binding is the concept of resolving function call at compile time. With static binding, the function call is bound to specific memory location where the function will be placed at compile time. Dynamic binding is the concept of resolving function call at run time. With dynamic binding, the function will be placed at run time. It is known at run time that which function is being called.

    4) Buffer overflow condition occurs when we attempt to store the data beyond the boundaries of buffer. When overflow occurs then either run time error occurs or the data is stored beyond the boundaries of buffer.

    Memory leakage occurs when memory is allocated from heap but is not allocated when memory is no longer in use. In Java, it is not the responsibility of programmer to release the memory as it is performed by Garbage Collector. Memory management in java has been taken away from programmer.

    5) Web applications are stored on a web server and delivered to users over the Internet. Web application is deployed in web server which has web container.
    Web applications are developed using JSP, Servlets, Java,...

    Enterprise application is delopyed in Application server which has Web container, EJB container, etc
    Enterprise Applications are develpoed using JSP, Servlets, Java, Web Services, EJBs, etc
    6) Multithreading is the ability to do multiple tasks concurrently. The concurrency is the property in which multiple components (threads) are executing and overlap in time, it means multiple threads do not execute simultaneously but are interleaved in small slice time. A program is said to be concurrent in which multiple components are executing at once. A program without multithreading executes sequentially.

    7) The Java Archive (JAR) file format enables you to bundle multiple files into a single archive file. Typically a JAR file contains the class files. The JAR files are packed with zip file format.

    8) Garbage Collector: Java performs garbage collection and eliminates the need to free objects explicitly. When an object has no references to it anywhere except in other objects that are also unreferenced, its space can be reclaimed.
    Before an object is destroyed, it might be necessary for the object to perform some action. For example: to close an opened file. In such a case, define a finalize() method with the actions to be performed before the object is destroyed. When a finalize method is defined in a class, Java run time calls finalize() whenever it is about to recycle an object of that class. It is noteworthy that a garbage collector reclaims objects in any order or never reclaims them. We cannot predict and assure when garbage collector will get back the memory of unreferenced objects.
    The garbage collector can be requested to run by calling System.gc() method. It is not necessary that it accepts the request and run.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Java support Multi-Threaded
    By Xpert in forum Java forum
    Replies: 0
    Last Post: 06-26-2011, 05:50 PM
  2. Dangling pointer memory leakage Data operations
    By saneha in forum C++ Programing
    Replies: 0
    Last Post: 05-02-2011, 05:43 PM
  3. what is function overloading and memory leak ?
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 05-02-2011, 06:07 AM
  4. What is OPERATOR OVERLOADING?
    By saneha in forum Java forum
    Replies: 2
    Last Post: 04-27-2011, 06:38 AM
  5. Java - Multi-threaded
    By saneha in forum Java forum
    Replies: 1
    Last Post: 04-27-2011, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft