Some practice questions related to Core Java with answers .
Core Java Important Notes for interview preparationFull description
Full description
Full description
Full description
Hand Written Note by Natraj Sir
This assignment has been assigned to analyze and implement the solution for the given problem and to understand the concepts of java. It states the differences between best searching and sorting al...
this is only the assignment briefFull description
assignment
nvbnvhg
For all Accy FriendsFull description
College Assignment
This file contains my solution to Lab 5 of Network Simulation Experiments Manual book
java Language Lab Assignment Assignment 3 -------------------------------------------------------------------------------1. Define a base class person and a derived class employee with single inheritance. - Define SetData! member functions in each of the class with different signatures to set the members and demonstrate overloading of member functions.
data
- Define "etData! member functions in each of the class with same signatures to display data and demonstrate overriding of member functions. #. $odify program 1 to define a parametri%ed constructor and finali%er in each class. Demonstrate calling the constructor constructor of the base class from the constructor of the derived class. - &reate objects of person and employee classes to show the order of invocation of constructors. 3. $odify program # to define another class manager that derives from employee' to create a chain of multilevel hierarchy.manager inherits from employee ( employee inherits from person! - &reate objects of person' employee' and manager classes to show the order of invocation of constructors. ). $odify program # to define define another class student student that derives from person' person' to create a hierarchial inheritance.employee inheritance.employee and student inherit from person! - &reate objects of person' employee' and student classes to show the order of invocation of constructors. *. +rite a java file ,erson.java containing definition definition of independent class ,erson in pacage com.person' and another java file Address.java containing definition of independent class Address in com.address pacage. - +rite a container class employee that has a person and an address object as contained data members besides other data members! by importing the above pacages. - Demonstrate the passing of arguments in the constructors of person and address classes by the constructor of the employee class. . /ewor program * to use both inheritance and containership. 0he employee class inherits from person class and acts as a container class for address class object. . +rite a program to demonstrate the use of try' catch' finally throw and throws eywords and demonstrate the following points in the program. a! $ultiple catch blocs. b! try-catch-finally combination. combination. c! try-finally combination. d! 2ception propagation among many methods. e! 4se of get$essage!' printStac0race! function of 0hrowable class. f! 5ested try blocs 6. +rite a program to throw a checed eception eplicitly using 7throw7 eyword and a! 8andle the eception in same method.
b! use throws clause and handle the eception in some other method calling method! c! Don7t either handle or use the throws clause. 9bserve the result. :. /epeat program 6 with uncheced 2ception and demonstrate the difference in both program. 1;. &reate a user defined eception to chec whether your employee eist in your data structure use any data structure to store the employees - lie array' ArrayList etc! and throw eception if name is not in the employees list. 4se the catch and finally bloc to mae an appropriate solution. 11. +rite a program to demonstrate the use of enteger class 9bject. 4se the override enteger with two different object wrapping same primitive int value lie - 1;!.demonstrate the difference in the output from program 11. 13. Demonstrate the use of ceil!' floor!' round!' random!' abs!' ma!' min! methods of $ath class. 1). +rite a program to invoe garbage collector and show the details of free memory before and after the garbage collection. 1*. +rite a program to print all System properties using system class. 1. Define a method set$y,roperty String' String! to set your own system property and use the same system property in another method. NOTE : Core Java Assignments 3 will be checked on 07//!0!
----------------------------------- 2 5 D ----------------------------------