Exam Details

Subject fundamentals of java programming
Paper
Exam / Course mca
Department
Organization Gujarat Technological University
Position
Exam Date January, 2019
City, State gujarat, ahmedabad


Question Paper

1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA SEMESTER-III EXAMINATION WINTER 2018
Subject Code: 2630002 Date: 11-01-2019
Subject Name: Fundamentals of Java Programming
Time: 10.30 am to 1.00 pm Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1

State whether the following statements are true or false. Justify your answers.
An interface can be derived from an interface.
Abstract class has constructors.
One Java (.java) file can have multiple classes.
One class cannot be derived from more than one interface in java.
A class declared as "final" can be inherited into another class.
Java source code can be written in files with any extension.
Static variable cannot be used in non-static methods.
07

Explain the difference between derived and super class with example.
Discuss initializer block and class initializer block with suitable java code.
03
04
Q.2

How can an array of primary data type and user-defined data type (class) be declared and used in java . Explain primary data type and user defined data type array with java code.
07

Design a class "employee" which has instance variables emp_id, emp_name, emp_sal,
default parameterized constructor;
"mca_employee" is derived from "employee" class. It has extra variable DA, default and parameterized constructor.
Create two objects of type "mca_employee". One is created by calling default constructor and another one by parameterized constructor.
Explain the process of calling of derived and super class constructor at the time of creation of these two objects with the help of this above application.
07
OR

Define primitive type and wrapper classes in Java. Explain boxing, unboxing and autoboxing using java program code.
07
Q.3

Differentiate in between class, abstract class and interface with JAVA program.
07

Discuss inner class, local inner class and anonymous inner class with java code?
07
OR
Q.3

Discuss method overriding and method overloading which are implemented in Java?
07

Define Thread. How many ways thread can be implemented?
07
Q.4

Describe final keyword for class, instance variable and method using inheritance in java program.
07

Discuss any five classes of Collection with java program code.
07
OR
Q.4

What is Frame class? Explain with java code.
Explain BorderLayout, CardLayout and FlowLayout managers of AWT.
04
03

How can exception be handled in java code? State the advantages of exception handling.
07
Q.5

Explain enum type with example.
07
2

Explain the process of creating and using user defined package in java. Give Example.
07
OR
Q.5

Explain InputStream class, OutputStream class, Reader class and Writer class with suitable java code.
07

What is "Comparable" interface, "Object" class and "Comparator" class? Explain with code.
07



Other Question Papers

Subjects

  • advance database management system
  • advanced biopharmaceutics & pharmacokinetics
  • advanced medicinal chemistry
  • advanced networking (an)
  • advanced organic chemistry -i
  • advanced pharmaceutical analysis
  • advanced pharmacognosy-1
  • advanced python
  • android programming
  • artificial intelligence (ai)
  • basic computer science-1(applications of data structures and applications of sql)
  • basic computer science-2(applications of operating systems and applications of systems software)
  • basic computer science-3(computer networking)
  • basic computer science-4(software engineering)
  • basic mathematics
  • basic statistics
  • big data analytics (bda)
  • big data tools (bdt)
  • chemistry of natural products
  • cloud computing (cc)
  • communications skills (cs)
  • computer aided drug delivery system
  • computer graphics (cg)
  • computer-oriented numerical methods (conm)
  • cyber security & forensics (csf)
  • data analytics with r
  • data mining
  • data structures (ds)
  • data visualization (dv)
  • data warehousing
  • data warehousing & data mining
  • database administration
  • database management system (dbms)
  • design & analysis of algorithms(daa)
  • digital technology trends ( dtt)
  • discrete mathematics for computer science (dmcs)
  • distributed computing (dc1)
  • drug delivery system
  • dynamic html
  • enterprise resource planning (erp)
  • food analysis
  • function programming with java
  • fundamentals of computer organization (fco)
  • fundamentals of java programming
  • fundamentals of networking
  • fundamentals of programming (fop)
  • geographical information system
  • image processing
  • industrial pharmacognostical technology
  • information retrieving (ir)
  • information security
  • java web technologies (jwt)
  • language processing (lp)
  • machine learning (ml)
  • management information systems (mis)
  • mobile computing
  • molecular pharmaceutics(nano tech and targeted dds)
  • network security
  • object-oriented programming concepts & programmingoocp)
  • object-oriented unified modelling
  • operating systems
  • operation research
  • operations research (or)
  • pharmaceutical validation
  • phytochemistry
  • procedure programming in sql
  • programming skills-i (ps-i-fop)
  • programming skills-ii (ps-oocp)
  • programming with c++
  • programming with java
  • programming with linux, apache,mysql, and php (lamp)
  • programming with python
  • search engine techniques (set)
  • soft computing
  • software development for embedded systems
  • software engineering
  • software lab (dbms: sql & pl/sql)
  • software project in c (sp-c)
  • software project in c++ (sp-cpp)
  • software quality and assurance (sqa)
  • statistical methods
  • structured & object oriented analysis& design methodology
  • system software
  • virtualization and application of cloud
  • web commerce (wc)
  • web data management (wdm)
  • web searching technology and search engine optimization
  • web technology & application development
  • wireless communication & mobile computing (wcmc)
  • wireless sensor network (wsn)