Applications of wrapper classes


Question 1: Write down all the applications of Wrapper Classes?

Question 2: Which of the given statements is correct?

a) You should initialize System with a path and filename if you want to use the System.err output.
b) The System.arraycopy method works only with the array of primitives.
c) The System.exit method takes an int primitive parameter.

Question 3: How does the class loader load the applet?

Question 4: Illustrate the utilization of java.ref package?

Question 5: Describe the benefits of Thread Grouping?

Question 6: Write down a program to input CustNo(String), ItemNo(String), Qty(int), Rate(Float class), discount Rate(Float class). Compute NetValue and discount amount for each customer by calling a function. At the end of program display the net collection and total discount amount given to all customers.

Question 7: Write down a program to call Paintbrush program from in Java the application.

Question 8: Write down a program that does the given:

a) Displays the memory available to the program. Exploring Java.Lang

b) Displays free memory available to the JavaRunTime.

c) Initiates the garbage collector.

d) Displays free memory after initiating the garbage collector.

e) Creates int array of 500 elements.

f) Displays free memory after the allocation.

g) Removes 200 elements by putting null reference to such elements.

h) Calls garbage collector.

i) Displays free memory after the garbage collection.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Applications of wrapper classes
Reference No:- TGS08743

Expected delivery within 24 Hours