Question

1. Describe all necessary steps and conditions for execution of a java". 2. What is maven...

1. Describe all necessary steps and conditions for execution of a java".


2. What is maven and explain one usse case for it?


3. What is Exception and list two categories of java exceptions with an exar for each?


(Short and Clear answer)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANS.1  

Maven is an automation(Build) tool used for projects in JAVA.It was developed by APACHE SOFTWARE FOUNDATION (in 2004) .It is a build tool wriiten in JAVA.Maven maily focuses on  two major aspects of software building: f

1. it describes how software is built

2.It describes its dependencies.

USE CASES FOR MAEVEN CAN BE LISTED AS BELOW:-

1.It downloads dynamically Java libraries and plug-ins from one or more repositories and stores all the downloaded libraries and plug ins  in a local cache.

2.An important use-case for Maven can be its ability of convention over configuration.i,e.we follow a consistent convention on structure of the files in our projects.Somebody  newj oining our project will probably know the convention.

ANS 2.

  • Exceptions are events that occur during the execution of programs that disrupt the normal flow of instructions (e.g. divide by zero, array access out of bound, etc.).
  • Java, an exception is consisdered as an object that is responisble for wraping an error event that occurred within a method

    • Information about the error ,error type,state of method or program when it ocurred
  • Exception objects can be thrown and caught.

TYPES OF EXCEPTIONS WITH EXAMPLES

1) Checked Exception

The classes which are directly inheritable from Throwable class except RuntimeException and Error are known as checked exceptions e.g. IOException, SQLException etc. Checked exceptions are checked at compile-time.

2) Unchecked Exception

The classes which inherit from RuntimeException are known as unchecked exceptions e.g. ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at compile-time, but they are checked at runtime.

3) Error

Error is irrecoverable e.g. OutOfMemoryError, VirtualMachineError, AssertionError etc.

I AM HERE FOR ANY FURTHER QUERIES PLEASE FEEL FREE TO COMMENT YOUR VIEWS ABOUT THE ANSWER.

THANKS! GOOD LUCK!!! :)

Add a comment
Know the answer?
Add Answer to:
1. Describe all necessary steps and conditions for execution of a java". 2. What is maven...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1.What is business marketing? Identify four categories of business customers. 2. Describe the six different steps...

    1.What is business marketing? Identify four categories of business customers. 2. Describe the six different steps in the consumer decision making process. 3. List and describe the four types of consumer offerings. 4. Please define value. Does the determination of value differ for each customer? Please provide a relevant example(s).

  • What display is produced by the execution of this JAVA program if we make the following...

    What display is produced by the execution of this JAVA program if we make the following call f(0,0). Please explain your answer public class function {    static void f(int x){        System.out.println(1);    }    static void f(double x){        System.out.println(2);    }    static void f(char x){        System.out.println(3);    }    static void f(long x){        System.out.println(4);    }    public static void main(String[] args) {       } }

  • For java review please help #2 2. (15 points (-14+1)) Compare the execution complexity of sorting...

    For java review please help #2 2. (15 points (-14+1)) Compare the execution complexity of sorting algorithms. Worst Case Average Case Selection Sort (2.1) Bubble Sort (2.2) Insertion Sort (2.3) Radix Sort Merge Sort Quicksort Heap Sort (2.8) (2.9) (2.10) (2.4) (2.5) (2.6) (2.7) (2.12) (2.13) (2.14) 3. (10 points) Answer the following questions for an array based representation of a complete binary tree (say the array name is binTree). (3.1) root of tree bin Tree LoT

  • Question 8 [5] 8.1. List three (3) conditions necessary for perfect competition. 8.2. Describe what you...

    Question 8 [5] 8.1. List three (3) conditions necessary for perfect competition. 8.2. Describe what you understand the profit-maximising rule to be.

  • 1.What is not in a call frame? Select one: a. Local variables b. Address of calling...

    1.What is not in a call frame? Select one: a. Local variables b. Address of calling method c. Global variables d. Argument values 2.What is true about Finally? Select one: a. Finally clause is executed only when an exception has been handled. b. Finally clause is executed when no exceptions are thrown. c. Finally clause is executed no matter what happens. d. Finally is mandatory to clean up used resources before a crash takes place. 3.Pass in a matching except...

  • Short Answer 1. List two types of immune responses and describe the 2. Describe the handling...

    Short Answer 1. List two types of immune responses and describe the 2. Describe the handling of infectious waste. 3. What are the five stages of infectious disease? Describe each. 2018 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in BODY'S DEFEN FIGHTING INES The Books bulatory of cntial that health in their power was to protect ammatis ing who mafory Re in more 4. What...

  • Choose the option that indicates all the necessary conditions to complete the 1) NaOH, H20 2)...

    Choose the option that indicates all the necessary conditions to complete the 1) NaOH, H20 2) MCPBA, CH2C12 1) NaCCH, DMF 2) Na, NH3 3) MMPP, CH3OH same step by step. + 1) Mg. ether 2) CH20 3) MCPBA, CH2C12 The first reaction step to achieve the following transformation would be HBr, H202 O NaBr, DMF HBr O Br2.hv Choose the resonance structure with the highest contribution (stability). d Based on the reaction shown, how many propagation steps would the...

  • 1-List the three types of Java methods discussed during lecture. Explain how each method type is...

    1-List the three types of Java methods discussed during lecture. Explain how each method type is used. 2- Describe the two contexts of a Java-class as discussed during lecture. 3- What is the purpose of the Java "new" keyword?

  • Advanced Object-Oriented Programming using Java Assignment 4: Exception Handling and Testing in Java Introduction -  This assignment...

    Advanced Object-Oriented Programming using Java Assignment 4: Exception Handling and Testing in Java Introduction -  This assignment is meant to introduce you to design and implementation of exceptions in an object-oriented language. It will also give you experience in testing an object-oriented support class. You will be designing and implementing a version of the game Nim. Specifically, you will design and implement a NimGame support class that stores all actual information about the state of the game, and detects and throws...

  • QUESTION 1 If an exception is thrown None listed all listed execution terminates if there is...

    QUESTION 1 If an exception is thrown None listed all listed execution terminates if there is no catch block handling the same data type as the exception thrown execution continues if the catch block handles the same data type as the exception thrown 10 points    QUESTION 2 An exception is handled using an if-else statement an assignment statement a loop statement a try-catch block 10 points    QUESTION 3 In program 9.4, what is the data type being thrown?...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT