0 evaluări0% au considerat acest document util (0 voturi)
599 vizualizări2 pagini
This document is a sample question paper for a Java programming exam with 6 questions and a total of 80 marks. Question 1 has 4 subparts worth 16 marks total asking about Java concepts like constructors, finalize methods, why Java is popular for web programming, inheritance and its types, thread priorities, and differences between applets and applications. Questions 2-5 each have 3 subparts worth 12 marks total and cover topics like the JVM, switch statements, method overriding, file I/O, serialization, packages, threads, exceptions, and applets. Question 6 has 2 subparts worth 16 marks requiring students to write programs for a moving banner applet, multithreading with odd and even numbers, and a Point class.
This document is a sample question paper for a Java programming exam with 6 questions and a total of 80 marks. Question 1 has 4 subparts worth 16 marks total asking about Java concepts like constructors, finalize methods, why Java is popular for web programming, inheritance and its types, thread priorities, and differences between applets and applications. Questions 2-5 each have 3 subparts worth 12 marks total and cover topics like the JVM, switch statements, method overriding, file I/O, serialization, packages, threads, exceptions, and applets. Question 6 has 2 subparts worth 16 marks requiring students to write programs for a moving banner applet, multithreading with odd and even numbers, and a Point class.
Drepturi de autor:
Attribution Non-Commercial (BY-NC)
Formate disponibile
Descărcați ca PDF, TXT sau citiți online pe Scribd
This document is a sample question paper for a Java programming exam with 6 questions and a total of 80 marks. Question 1 has 4 subparts worth 16 marks total asking about Java concepts like constructors, finalize methods, why Java is popular for web programming, inheritance and its types, thread priorities, and differences between applets and applications. Questions 2-5 each have 3 subparts worth 12 marks total and cover topics like the JVM, switch statements, method overriding, file I/O, serialization, packages, threads, exceptions, and applets. Question 6 has 2 subparts worth 16 marks requiring students to write programs for a moving banner applet, multithreading with odd and even numbers, and a Point class.
Drepturi de autor:
Attribution Non-Commercial (BY-NC)
Formate disponibile
Descărcați ca PDF, TXT sau citiți online pe Scribd
a) Describe the following terms: i) Constructor. ii) finalize( ) method. b) Why java is more popular for internet programming. c) What is inheritance? What are its types? d) Explain priority of threads. e) Describe isAlive( ) and join( ) methods. f) Differentiate between applet and application.
Q.2 Attempt any three of the following: 12
a) What is JVM? Explain. b) Describe switch case statement with explain. c) What do you mean by dynamic method dispatch? d) Write a program which will find the sum of digits of a number entered by user.
Q.3 Attempt any three of the following: 12
a) Describe the methods of inserting and deleting an element in a vector. b) Describe the following string class methods: i. equal( ) ii. compareTo( ) c) Explain how to create multilevel hierarchy with example. d) Explain what do you mean by packages?
Q.4 Attempt any three of the following: 12
a) Explain the process of serialization? b) Write a program which will read number of lines and characters from a file? c) Write a program which will reverse a number given as command line argument? d) Explain how multiple inheritance is achieved in JAVA? e) Explain how interfaces are inherited?
Q.5 Attempt any three of the following: 12
Java Programming (9113): Sample Question Paper. 1
a) What is thread? How to achieve multithreading? b) What is exception? How is it handled? c) Write a program to illustrate the use of try block with finally clause only? d) Explain how parameters are passed to applets?
Q.6 Attempt any two of the following: 16
a) Write a program to create an applet which will display moving banner? b) Write a program to create 2 threads, where one thread will print odd numbers and other will print even numbers. c) Write a program to create a class point having variables X-co-ordinate and Y-co-ordinate. Declare the constructor and define 2 methods one will take input other will display output.
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
CODING FOR ABSOLUTE BEGINNERS: How to Keep Your Data Safe from Hackers by Mastering the Basic Functions of Python, Java, and C++ (2022 Guide for Newbies)
Modern Tkinter for Busy Python Developers: Quickly Learn to Create Great Looking User Interfaces for Windows, Mac and Linux Using Python's Standard GUI Toolkit
Microsoft PowerPoint Guide for Success: Learn in a Guided Way to Create, Edit & Format Your Presentations Documents to Visual Explain Your Projects & Surprise Your Bosses And Colleagues | Big Four Consulting Firms Method
The Advanced Roblox Coding Book: An Unofficial Guide, Updated Edition: Learn How to Script Games, Code Objects and Settings, and Create Your Own World!