Public static void main(string[] args) { }
public static void main(String[] args) { int[] input = {2}; String str = "Dot net funda dot com"; try { int val1 = 5/args.length; input[10] = 12; int val2 = Integer.parseInt(str); } catch(ArithmeticException ae) { Console.WriteLine("Arithmetic Exception"); } catch(ArrayIndexOutOfBoundsException abe) { Console.WriteLine("ArrayIndex Out Of Bounds Exception"); } catch(NumberFormatException nfe) { Console.WriteLine("Number Format Exception"); } }
#region Global Variables int _Val1; int _Val2; #endregion #region Class definition public class Employee_Master { static void Main() { } } #endregion