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?

  • Exploring Utilities in linux 1. Describe the steps and command that is required to translate all...

    Exploring Utilities in linux 1. Describe the steps and command that is required to translate all the characters in a file called May-2014 report from lowercase to uppercase. 2. Describe the steps and command that is required to translate all the blank characters to new line characters (new line character = ‘\n’) in a file called May-2014. 3. Describe the steps and command that are required to change all instances of the work “May” to the word “MAY” in the...

  • -------------------------------------------------------------------- 1. How does Java support the concept of encapsulation? -------------------------------------------------------------------- 2. Describe the difference between...

    -------------------------------------------------------------------- 1. How does Java support the concept of encapsulation? -------------------------------------------------------------------- 2. Describe the difference between an object and a class. -------------------------------------------------------------------- 3. What is the difference between the contents of a Java variable of a primitive type and a Java variable of a class type? -------------------------------------------------------------------- 4. (a) How is a 'static' class method different from a regular (non-static) class method? (b) How is a 'static' variable in a class different from a regular (instance) variable in a class?...

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