Category: Basic Java
-
command line argument and custom exception example in java
WAP to accept 5 command line arguments and then raise custom exception if any argument is not from the list(“BCA”,”MCA”,”BBA”,”MBA”,”OTHER”).
-
nested package example in java
/*stud.java->rollno, name_of_student,class->stud.class in Package p1 result.java extends stud.java->marks in java, marks in unix, and marks in os.->result.class in Package p2 which is resided in package name p1 Finally print all data*/