Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The language errors such as grammatical, spelling errors should not be given more Importance (Not applicable for subject English and Communication Skills). 1.List any eight

The language errors such as grammatical, spelling errors should not be given more Importance (Not applicable for subject English and Communication Skills).


1.List any eight features of Java.

1b.State use of finalize( ) method with its syntax.

1c.Name the wrapper class methods for the following: (i) To convert string objects to primitive int. (ii) To convert primitive int to string objects. (i) To convert string objects to primitive int:


1d.List the types of inheritances in Java.


1e.Write the syntax of try-catch-finally blocks.



1f.Give the syntax of < param > tag to pass parameters to an applet.


1g.Define stream class. List its types.


2a.Explain the concept of platform independence and portability with respect to Java language.


2b.Explain the types of constructors in Java with suitable example.


2cExplain the two ways of creating threads in Java.



2d.Distinguish between Input stream class and output stream class.


3a.Attempt any THREE of the following: Define a class student with int id and string name as data members and a method void SetData ( ). Accept and display the data for five students.


3b.Explain dynamic method dispatch in Java with suitable example


3c.Describe the use of following methods: (i) Drawoval ( ) (ii) getFont ( ) (iii) drawRect ( ) (iv) getFamily ( )


3d.Write a program to count number of words from a text file using stream classes.


4a.Attempt any THREE of the following: Describe instance Of and dot (.) operators in Java with suitable example


4b.Explain the four access specifiers in Java.


4c.Differentiate between method overloading and method overriding.


4d.Differentiate between Java Applet and Java Application

Write a program to copy content of one file to another file.


5a.Describe the use of any methods of vector class with their syntax.


5b.Explain the concept of Dynamic method dispatch with suitable example


5c.Write a program to create two threads. One thread will display the numbers from 1 to 50 (ascending order) and other thread will display numbers from 50 to 1 (descending order).



6a.Explain the command line arguments with suitable example.


6b.Write a program to input name and salary of employee and throw user defined exception if entered salary is negative.


6c.Describe the applet life cycle in detail.


7a.Define Constructor. List its types.


7b.Define Class and Object.


7c.List the methods of File Input Stream Class.


7d.Define error. List types of error


7e.List any four Java API packages.


7f.Define array. List its types.


7g.List access specifiers in Java.



8a.Differentiate between String and String Buffer.


8b. Define a class circle having data members pi and radius. Initialize and display values of data members also calculate area of circle and display it.


8c.Define exception. State built-in exceptions.



8d.Write syntax and example of :

1) drawRect() 2)drawOval()

Explain the following classes. i)Byte stream class ii)Character Stream Class


9b.Explain life cycle of Applet


9c.Differentiate between class and interfaces.


9d.Define type casting. Explain its types with syntax and example.



10a.a Explain life cycle of thread.

10b. Describe final variable and final method



10c.Explain any two logical operator in java with example.


10d.Differentiate between array and vector.


10e.List any four methods of string class and state the use of each.


11a.Write a program to create a vector with five elements as (5, 15, 25, 35, 45). Insert new element at 2nd position. Remove 1st and 4th element from vector


11 b Define package. How to create user defined package? Explain with example.


11 c Write a program to create two threads one thread will print even no. between 1 to 50 and other will print odd number between 1 to 50.


12 a Explain how to pass parameter to an applet ? Write an applet to accept username in the form of parameter and print "Hello ".


12b.Write a program to perform following task (i) Create a text file and store data in it. (ii) Count number of lines and words in that file.



Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business and Administrative Communication

Authors: Kitty o. locker, Donna s. kienzler

10th edition

77830105, 978-0077830106, 978-0073403182

More Books

Students also viewed these Computer Network questions

Question

9. Explain any 5 axioms of finance with real examples. (500 words)

Answered: 1 week ago

Question

Derive Eq. (18.33) from Eq. (18.32).

Answered: 1 week ago

Question

What are ways to build emotional appeal?

Answered: 1 week ago