Preview

Pt1420 Unit 10 Research Paper

Good Essays
Open Document
Open Document
559 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pt1420 Unit 10 Research Paper
Q1) Explain what are applet and also explain the uses of Applets.
A1: Applet is a type of Java program that runs on web browser. It can be a fully functional Java application because it has full Java API as its disposal. It is used to generate dynamic content. Works on client side, it will run inside a browser.
They are used for webpage enhancement, adding small interactive components, can also be used to display large programs like of games or word processors. Java’s portability makes it unique for WWW.
Q2) Explain the various methods of the applet life cycle by describing suitable methods to the same.
A2: There are four stages in applets life cycle:
Initialized
Started
Stop
Destroy
These stages refer to init(), start(),stop() and destroy(),
…show more content…
Even if you handle them using try-catch blocks, your application will not recover if they happen. Exceptions can be handled using try-catch blocks and can make flow normal in program.
3) Exceptions in java are divided into two categories – checked and unchecked.Where as all Errors belongs to only one category i.e. unchecked.
4) Compiler will not have any knowledge about unchecked exceptions which include Errors and sub classes of Run Time Exception because they happen at run time. Where as compiler will have knowledge about checked Exceptions. Compiler will force you to keep try-catch blocks if it sees any statements which may throw checked exceptions.
5) Exceptions are related to application where as Errors are related to environment in which application is running.

Q5) Explain what are constructors and describe the use of the same with suitable examples.
A5: Constructors are used to initialize objects in java, at the time of object creation it is invoked. It provides data for an object that is why it is called a constructor. Constructor is automatically called immediately after the object is created, before the new operator completes. Constructors look a little strange because it has no return type, not even valid.
Taking an example:

Class Box { double width;
double

You May Also Find These Documents Helpful

  • Satisfactory Essays

    LAb1Ecet230

    • 221 Words
    • 3 Pages

    2. In the compilation process, what is the difference between an error and a warning?…

    • 221 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    For Visual Basic a variable’s name must have a letter as the first character, you cannot use spaces, periods, or other special characters such as !@#. The name cannot exceed 255 characters. The variable should not have a similar name as the functions, statements, and methods, and the name cannot be repeated within the scope. This language is not case sensitive.…

    • 333 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    A person has to follow all the instruction to the latter. Failure in which this program shall not…

    • 879 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Errors occurred at the later stages of the project are very expensive in terms of both time and cost because every project goes through software development life cycle, and any changes made in the later stages would result in re-consideration for all the previous stages and this would cause lot of delay in project and even cost of the project increases…

    • 2331 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    Errors occurred at the later stages of the project are very expensive in terms of both time and cost because every project goes through software development life cycle, and any changes made in the later stages would result in re-consideration for all the previous stages and this would cause lot of delay in project and even cost of the project increases…

    • 1297 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    In two thoughtful sentences per term, explain what each of the following are and how they can be used in the classroom:…

    • 94 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    JavaNet Internet Cafe is to be the first high tech internet cafe in Eugene, Oregon. The cafe will provide computer equipment, as well as high speed internet access as well as coffee and bakery items. The appeal of this company is to provide advanced internet services to the public that may not be affordable in home use. Also, the business plan includes a training staff to assist new internet users in learning the basics of the internet. The goal of this plan is to provide an upscale social and educational environment for those who desire internet access as well as social interaction and technical assistance.…

    • 805 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Miss

    • 14651 Words
    • 59 Pages

    Why use Java? ...........................................................................................................16 Java platform basics – JDK, JRE, JVM, etc..................................................................21 Setting up and running Java...........................................................................................30 How are your classes…

    • 14651 Words
    • 59 Pages
    Good Essays
  • Good Essays

    (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException".…

    • 2086 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Exception Handling

    • 879 Words
    • 4 Pages

    Exceptions can be: 1) generated by the Java run-time system Fundamental errors that violate the rules of the Java language or the constraints of the Java execution environment. 2) manually generated by programmer’s code Such exceptions are typically used to report some error conditions to the caller of a method.…

    • 879 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Linear Algebra Problems

    • 613 Words
    • 3 Pages

    1. a) Let a be an object and define V = {a }. On V, define the addition as…

    • 613 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    a. Software development tools like visual tools, class libraries, compilers, scripting tools, etc. usually introduce their own bugs in the system.…

    • 4132 Words
    • 17 Pages
    Better Essays
  • Powerful Essays

    A programming language developed by Sun Microsystems used for cross-platform Web-based applications. Its primary contribution to the Web has been in the form of Java Server Pages (JSP), J2EE and it is also used in ‘applets’ - mini-programs written in Java that run in browsers.…

    • 2817 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    study Notes On Computer

    • 442 Words
    • 2 Pages

    23. An error in software designing which can even cause a computer to crash is called bug.…

    • 442 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    3. Construct a paragraph about the uses of Instructional Materials in constructivist and traditional perspective.…

    • 433 Words
    • 2 Pages
    Satisfactory Essays