0% found this document useful (0 votes)
22 views

Ad. Java 2020

Uploaded by

Nasimul Hasan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
22 views

Ad. Java 2020

Uploaded by

Nasimul Hasan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Mawlana Bhashani Science and Technology University Department of Information and Communication Technology 2 Year 2! Semester BSc. (Engg.) Final Examination 2020 (Course Title: Advanced Java and Mobile Application Course Gade: ICT-2205 Marks: 23 Time: 1 Hours Set-A Answer any 2 {two} from the following 4 (Four] questions 1. a) SDBC-ODBE Hiridge is mutthneaded or noe? Justify your answer, Bl b) What will be the qutput of tte fallawing code block? [31 class Student | ©) What will beth autput of the fallawing code block? Bl class A | public & 1 class 2 ext peblic cl. public seacic w Ram new 21; printin(*complete") 1 24) d) What will be the autput ofthe fallawing code block? Ia) tringkef | static void main(String [] args) { €) What isthe final iueyword in Java? fea} 2. Servlet technolagy is used to create a web application (resides on the server-side and generates a dynamic web page). Serviet teelknology is rabust and sealable because of the java language Before Servlet, CG! (Common Gateway Interface) scripting language was common as 4 server-side programming language However, there were many disadvantages to this terhnology. Nowranswer the following question precisely: a) Explatnthe Life Cycle of a Servet with the necessary cade and diagram. te) b) What arethe advantages of using Servtets. i ©) Listsome diferences of Servlets with Cot, BI 4. a) What arethe DBC statements? List the classification of JDBC statements 61 b) What are the diferences between Statement and Prepared Statement interface? 6) €) Define the Result Set object in java and Which function will retura the Result Set abject? [4] Page 1 of 2 + SSN: String + Name: String + Sex: String + Email: String + Contact: String + Buy():void + SellQ:void + ID: String + Name: String + Address: String + Company(String, String, String) + ID: String + CID: String = Shares: int - Price: Double + Date: String + Owns(Int, Double) Now answer the following question precisely: a) b) ¢) What is Association Class? When it is needed? Write a Java Program to implement the above-mentioned Association. What do you mean by Cardinality? [4] (8] [2]

You might also like