Email : [email protected] IGNOU Friend

Course Code : CS- 74 Course Title : Introduction to Internet Programming (Java, ActiveX) Assignment Number : BCA (6)-74/Assignment/2011 Maximum Marks : 100 Last Date of submission : 30th April, 2011 (For January Session) 30th October, 2011 (For July Session) This assignment is having five questions. Answer all the questions. Question 1: Differentiate between the following terms along with appropriate examples (20 Marks) Applet and application Applet •Programs that are downloaded from the Web and executed inside of a browser •Cannot read or write to local file system •Cannot communicate with any server other than the one that the applet was downloaded from •Cannot run any program on user's system •Cannot load programs native to the local platform Application •Stand alone Java programs that do not require a Web browser to run •They are more general purpose programs •They do not have security restrictions that applets have •They are typically executed using the command line JVM (java)

Inheritance and interface

Inheritance •Extending base class’s members into drive class •Extending class and abstract class into drive class •Support only single inheritance by using extend keyword •Inherited class would create there instance

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Email : [email protected] IGNOU Friend

•Abstract class is act like partial interface Interface •Organizing drive class by base class member declaration •Drive class must have definition function which are declared in base class •You can implement multiple interfaces into a single drive class by using implements keyword •Interfaces does not create any instance •Interface doesn’t consist any definition of members (iii) Private and Protected Private •The type or member can be accessed only by code in the same class •Private variables, are variables that are visible only to the class to which they belong. •Private variable can’t inherited into sub class •Private variable can be access within class by using this keyword Private variable are tightly encapsulated with class’s object Protected •The type or member can be accessed only by code in the same class, or in a class that is derived from that class. Page | 2

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Email : [email protected] IGNOU Friend

•Protected variables, are variables that are visible only to the class to which they belong, and any subclasses. •Protected variables can be inherited in to sub class as private as well as protected •Protect variable can be access within class by using this keyword and super keyword in sub class •Protected variable are loosely encapsulated with class’s object This and Super

This •this keyword use to access class level members •this refers to the current class

•private variables cannot be accessed in a inherited class by using "this" • by using this same class constructor can class another constructor of the same class Super •super keyword use to access super class members as well as constructor •super refers directly to its immediate above super class •by using "super" we can easily access the private variables in its super class •by using super we can call super class constructor, but I’ll present at first line of drive class constructor Question 2: Answer the following questions (20 Marks) What is mean by Serialization? Also differentiate between Transient and Volatile keywords.

Serialization is the process of translating a state of an object into a stream of bytes. The process of reconstructing an object from a stream of bytes that represent its serialized state is called de-serialization. Serialization is mostly used when the state of objects have to be written to persistent storage for later retrieval or for transfer over a network. TRANSIENT identifies a variable not to be written out when an instance is serialized (It can'nt be copied to remove system) VOLATILE

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Email : [email protected] IGNOU Friend

indicates that the field is used by synchronized threads and that the compiler should not attempt to perform optimizations with it. When more than one thread share a (volatile) data it is checked every time. Every thread keeps the latest value of volatile variable (ii) Why Java is called platform independent? Is C++ also Platform independent? Justify your answer? Page | 3

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Email : [email protected] IGNOU Friend

Platform independent means the execution of the program is not restricted by the type of os environment provided...thereby make it possible to process the program at any type of environement available. Java is a platform independent language becoz of the bytecode magic of java. In java when we execute the source code...it generates the .class file comprising the bytecodes. Bytecodes are easily interpreted by JVM which is available with every type of OS we install. Whereas C and C++ are complied languages which makes them platform dependent. The source code written in C / C++ gets transformed into an object code which is machine and OS dependent. That's the reason why C and C++ languages are termed as Platform Dependent. (iii) When do we declare a member of class static ?Explain with the help of a suitable example A static member can be accessed without creating an instance of the class. If you try to use a nonstatic method and variable defined in this class then the compiler will say that non-static variable or method cannot be referenced from a static context. Static method can call only other static methods and static variables defined in the class. The concept of static method will get more clear after this program. First of all create a classHowToAccessStaticMethod. Now define two variables in it, one is instance variable and other is class variable. Make one static method named staticMethod() and second named asnonStaticMethod(). Now try to call both the method without constructing a object of the class. You will find that only static method can be called this way. The code of the program is given below: public class HowToAccessStaticMethod{ int i; static int j; public static void staticMethod(){ System.out.println("you can access a static method this way"); } public void nonStaticMethod(){ i=100; j=1000; System.out.println("Don't try to access a non static method"); } public static void main(String[] args) { //i=100; j=1000; //nonStaticMethod(); staticMethod(); } }

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Course Code : CS- 74 Course Title : Introduction to Internet ...

Oct 30, 2011 - IGNOU Friend. If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]. Course Code : CS- 74.

39KB Sizes 2 Downloads 327 Views

Recommend Documents

Course Code : CS-62 Course Title : 'C' Programming & Data ...
If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]. Course Code : CS-62. Course Title : 'C' Programming ...

Course Contents Category of Course Course Title Course Code ...
Course Contents. Category of. Course. Course Title. Course Code Credits – 6C. Theory Papers. (ES). L T P ... Fluid Mechanics and Machinery- Agrawal, TMH. 3.

Course Information Form Course title: Essay Writing Course Stage ...
Course Information Form. Course title: Essay Writing. Course Stage: Junior Students ... An update course-book (2006) in essay writing is adopted as a text-book. It consists of a number of chapters that provide ... to-date American course book) by: D.

ICSI-Integrated CS Course Prospectus.pdf
ICSI-Integrated CS Course Prospectus.pdf. ICSI-Integrated CS Course Prospectus.pdf. Open. Extract. Open with. Sign In. Main menu.

Course content BS(CS).pdf
Page 1 of 928. 1. TUYỂN TẬP ĐỀ THI VÀO LỚP 10. MÔN TOÁN. ĐỀ SỐ 01. Bài 1.(2điểm). a) Thực hiện phép tính: 1 2 1 2 : 72. 1 2 1 2. − +. −.

Course content BS(CS).pdf
Course content BS(CS).pdf. Course content BS(CS).pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Course content BS(CS).pdf.

continuing education unit participant evaluation course title
CEU4EVAL.PM4. (Name of Sponsoring Organization). CONTINUING EDUCATION UNIT. PARTICIPANT EVALUATION. COURSE TITLE: ...

ICSI-Integrated CS Course Prospectus.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. ICSI-Integrated ...

ICSI-Integrated CS Course Prospectus.pdf
ICSI-Integrated CS Course Prospectus.pdf. ICSI-Integrated CS Course Prospectus.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ICSI-Integrated ...

continuing education unit participant evaluation course title
3. The course content met the course objectives: ______. 4. The training aids/handouts used were beneficial: ______. 5. My overall rating of the course was:.

Introduction to the course
Oct 3, 2011 - 10/3/2011. 2. Whom did school benefit or seek to benefit? • To be popularized, a system of ideas must fit the needs of some element of society.

Course: Introduction to Political Science
4 Jan 2018 - Political System (X) keeps the state intervention to the minimum level and encourages widely private initiative. Accordingly; it is considered a: (A)Minimal State (B)Totalitarian State (C) Collectivist State (D) None of the above. 3. Org

Course: Introduction to Intelligent Transportation Systems - GitHub
... Introduction to Intelligent Transportation Systems. University of Tartu, Institute of Computer Science. Project: Automatic Plate Number. Recognition (APNR).

(Tutor Marked) Programme Code: DCCN Course Code: BNS
Q1. a). Define Intra abdominal compartment syndrome. b). Explain its etiology and pathophysiology. c). Describe its nursing management. 2+3+5=15. Q2 a). Define Open Heart Surgery. b). Classify Open Heart Surgeries. c). Discuss Nursing Care plan of pa

CS 253 – Algorithms and Data Structures - Course Syllabus
Instructor: Bruce McMillin. Rm 322 Computer Science Building. 341-6435, [email protected]. Office Hours: Monday. 08:30-10:30. Wednesday. 08:30-10:30. Course Objectives. The purpose of this course is fourfold: • Learn advanced algorithmic techniques and pu

MCS-013 Course Title : Discrete Mathematics ...
is a tautology or not. Ans : Tautology : A compound proposition that is true for all possible truth values of the simple propositions involved in it is called a ...

CS 253 – Algorithms and Data Structures - Course Syllabus
Program assignments are due 1 week after being assigned unless otherwise stated in class. Some work may be in small groups (up to ... Ch. 34: Brief Introduction to NP Completeness and Undecidability. ½ week. Course Requirements/Policies ... I will u

CS PROFESSIONAL OLD COURSE PAPER 1 -8 SUGGESTED ...
=>Company form 61 file karegi. Uske sath. 5 cheez attach karegi. 1. ..... CS PROFESSIONAL OLD COURSE PAPER 1 -8 SUGGESTED ANSWER.pdf.

Introduction to C++ Lab (CS 54) - CS SYLLABI
If you have a documented disability and anticipate needing accommodations in ... request that the Disability Support Services staff send a letter to the instructor ...

MCS-042 Course Title : DATA COMMUNICATION AND COMPUTER ...
Course Code. : MCS-042 ... DATA COMMUNICATION AND COMPUTER NETWORK .... Only four bits of host suffix are needed to represent all possible host.

General Information Course Title : Real Projects for ...
Overview. The Bureau of Labor Statistics (BLS) predicts at least 500,000 new high-paying jobs in IT/software development over the next 3-4 years, even in the face of the current economic crisis. (The number of new job openings will increase even fast