web tech imp Q (1)
web tech imp Q (1)
7. How are forms used in HTML? List and explain form elements.
Introduction to Java:
1. What are JVM, JRE, and JDK? Explain their roles in Java programming.
2. Explain the features of Java that make it platform-independent. Or Define bytecode and its
significance in Java.
3. Write a simple Java program to add two numbers using user input.
4. Discuss the concept of object-oriented programming and its principles with examples.
5. What are the different control statements in Java? Give examples of each.
6. Explain the use of the “switch” statement in Java with a sample program.
Classes, Inheritance:
Interface, Package:
2. Explain the role of the “interface” keyword in Java. Explain the concept of interfaces in Java
and how they differ from abstract classes.
3. How does Java handle access control? Explain the types of access modifiers.
Exception Handling:
3. Write a Java program to demonstrate the use of try, catch, and finally blocks.
String Handling:
3. How can you extract a substring from a string in Java? Provide an example.
1. What is the difference between byte stream and character stream in Java?
1. What is a collection in Java? List the main interfaces in the Java Collections Framework.
4. Write a program to iterate through a collection using the Iterator and forEach methods.
Applet:
2. How are events handled in Java using Event Listeners? Provide an example.
3. Write a program to create a simple GUI with buttons and labels using AWT.
5. What are the AWT classes used for creating GUI components like text fields and buttons?