Documente Academic
Documente Profesional
Documente Cultură
1
IV B.Tech I Semester Regular Examinations, November 2007
INTERNET AND JAVA
(Electronics & Computer Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) What is a application? Describe the anatomy of the Java application program.
[8]
(b) What is an applet? Describe the anatomy of the applet program with an
example. [8]
2. (a) Describe the guidelines for Java programming style and documentation. [10]
(b) Java is a freeform language . Comment . [6]
4. What is a static modifier? List the modifiers that can appear in the declarations
of classes, fields, local variables, constructors, and methods. [16]
5. (a) Explain the overloaded versions of the Insert () method of the String Buffer
class.Illustrate its usage in a Java program. Give output. [8]
(b) Explain the substring () and reverse () methods of the String Buffer class. [8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR411901 Set No. 2
IV B.Tech I Semester Regular Examinations, November 2007
INTERNET AND JAVA
(Electronics & Computer Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) What is World Wide Web ? What is the contribution of Java to the World
Wide Web? [8]
(b) What is Hypertext Markup Language ? Describe the role in the implementa-
tion of Java applets . [8]
2. (a) Write about automatic type conversion and explain when casting is needed.
(b) Write short notes on derived data types with suitable examples. [10+6]
4. (a) Explain in-detail the process of defining, creating, importing and accessing a
package with suitable examples [10]
(b) Discuss the different levels of access protection available in Java. [6]
5. Write an application that inputs a line of text tokenizes the line with an object of
class StringTokenizer and outputs the tokens in reverse order [16]
6. What are Abstract classes? Write a program having Student as an abstract class
and create many classes such as engineering, Science, Medical etc., from the Student
class. Create their objects and process them. [16]
7. Write a java program to create an applet with six buttons representing your favourite
six colours when button is clicked, the background must change to the correspond-
ing colour. [16]
8. (a) List out the consructors used to create File objects and explain. [7]
(b) Write a Java program to list the given directory [5]
(c) Write a Java program to rename a file ? [4]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR411901 Set No. 3
IV B.Tech I Semester Regular Examinations, November 2007
INTERNET AND JAVA
(Electronics & Computer Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. (a) Describe the guidelines for Java programming style and documentation. [10]
(b) Java is a freeform language . Comment . [6]
4. (a) Define a class in Java. How classes & objects can be in Java programs.
Illustrate with example. [10]
(b) Write down the usage of finalize () method. [6]
5. (a) Write a program to display all Fibonacci numbers between m and n. [10]
(b) Contrast the StringBuffer with the Stringtokenizer class. [6]
6. (a) Write a program that illustrates the application of multiple catch statements?
[8]
(b) Write a program that demonstrates how certain exception types are not al-
lowed to be thrown. [8]
8. Write a Java program to set up server to receive packets from a client and send
packets to the client. [16]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR411901 Set No. 4
IV B.Tech I Semester Regular Examinations, November 2007
INTERNET AND JAVA
(Electronics & Computer Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. (a) What are identifiers? Enumerate the rules for creating identifiers in Java? [6]
(b) What are the conventions followed by Java for naming identifiers? [5]
(c) List and brief the valid identifiers and invalid identifiers . [5]
4. (a) What is the need for member function or method inside a class? Explain the
procedure to define and add a method to a Java class. [10]
(b) What are the restrictions on static methods? [6]
5. Write an application that inputs a line of text tokenizes the line with an object of
class StringTokenizer and outputs the tokens in reverse order [16]
8. Write a file transfer server program in Java using TCP that takes input filename
from client and contents of the file to the client. [16]
⋆⋆⋆⋆⋆
1 of 1