DAY 7 JAVA Exception An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions. Error vs Exception Error: An Error indicates serious problem that a reasonable application should not try to catch. Exception: Exception indicates conditions that a reasonable application might try to catch. Exception Terminates Java Program package com.myjava.exceptions; public class MyException { public static void main(String a[]){ for ( int i= 5 ;i>= 0 ;i--){ System.out.println( 10 /i); } System.out.println( "After for loop..." ); } } ...
6 Months industrial training Android App Development DAY 1 JAVA Language: the method of human communication, either spoken or written, consisting of the use of words in a structured and conventional way. Programming Language: A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output. Programming languages generally consist of instructions for a computer . JAVA : Java is a general-purpose computer-programming language that is concurrent , class-based , object-oriented , and specifically designed to have as few implementation dependencies as possible. JAVA is a pure object oriented programming language. FEATURES OF OOPS The Objects Oriented programming language supports all the features of normal programming languages. In addition it supports some important concepts and terminology w...
Comments
Post a Comment