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

Java 2

Uploaded by

roy.ramkumar77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Java 2

Uploaded by

roy.ramkumar77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

CB

TILAK MAHARASHTRA VIDYAPEETH, PUNE


BACHELOR OF COMPUTER APPLICATIONS (B.C.A)
SPECIALIZATION IN CYBER SECURITY (CS)
EXAMINATION : DECEMBER- 2023
SEMESTER - IV
Sub: Java/ Java Programming
(BCA- 440-18/BCA-440-20/BCA-CS-440-20)
Date : 19/12/2023 Total Marks : 60 Time: 2.00 pm To 4.30 pm

Instructions:
1. Allquestions are compulsory unless and otherwise stated.
2. Bold figres to the right ofevery question are the maximum marks for
that question.
3. Candidates are advised to attempt questions in order.
zero.
4. Ansvers written illegibly are likely to be marked
S. Use ofscientific calculators, Log tables, Mollier Charts
is allowed.
6. Draw neat and labeled diagramns wherever necessary.

(5)
Q.1. Fill in the blanks.
together
1. the technique of binding both data and functions
is
a) Class b) Array
d) ) None
c) Encapsulation
The full form of IDE is
2
b)integrateddevelopment environment
a) integrated deployment environment environment
d) imported development
c) ) integrated data entity
into machine code
3 JVM is used to convert
b) arrayList
a) text d) instructions
c) Byte Code using the
are found and fixed
4. The java program's bugs b) JRE
a) JVM d) JDK
c) Java Debugger to constructor of the parent class
5. In Java, keyword is used for call the
b) byte
a) super d) abstract
c) enum
(5)
Q.2. State True/False.
string functions.
1. java. Lang packages contain
Java
2 Interfaces can be instantiated in program is called a Token
smallest meaningful element of a Java
3. The
& output operations in Java.
4. Streams is used to perform all input objects.
to behave differently for different
5. Polymorphism allows a function
(10)
any 5)
Q.3. Answer the following. (Solve
independent language?
1. Why is Java a platform
Java.
List types of inheritance in
2. Define Inheritance.
in java.
3. Write a note on Scanner class
arithmetic operators in Java.
4. Explain different
use of this keyword in java?
S. What is the 1/2
6. List any 4
features of Java.
440-18/BCA-440-20/BCA-CS-440-20) ALDII
(BCA-
Java/ JavaProgramming
(Solve any 6)
Q. 4. Answer the following in detail. (30)
Write any two
access specifiers with suitable example
try, catch & finally block
1

What is Exception? Explain elements.


2
a program that accept array elements print the average of all
3. Write Java
to create a thread using Runnable interface
4 What is runnable Interface? Give example Java.
different types of constructors in
What is a constructor? Explain Method Overloading
5.
Program to Find Area of Square, Rectangle and Circle using
6. Java
in Java.
7. Explain BufferedReader class
(10)
(Solve any 1)
Answer the following in detail. example.
Q.5.
Abstraction. Explain Abstract classes and methods with
1. Define Java components used in Java with example.
2. What is Java Swing? Explain any five Swing

22
440-18/BCA-440-2O/BCA-CS-440-20) ALDIII
Java/ Java Programming (BCA-
CB
60:40
TILAK MAHARASHTRA
VIDYAPEETH, PUNE
BACHELOR OF COMPUTER
SPECIALIZATION IN APPLICATIONS (B.C.A.)
CYBER SECURITY (CS)
EXAMINATION: DECEMBER -
2022
-
SEMESTER IV
Sub: Java / Java Programming
(BCA- 440-18/BCA-440-20/BCA-CS-440-20)
Date :21/12/2022
Total Marks : 0 Time: 2.00 pm to 4.30 pm
Instructions:
1. All questions are
compulsory unless and otherwise
2. Bold stated.
jigures to the right of every question are the maximum
3.
Candidates are advised to attempt marks for that questiOM.
4. Answers
questions in order.
written illegibly are likely to be marked zero.
5. Use
ofscientific calculators, Log tables, Mollier
6. Draw neat Charts allowed.
and labeled diagrams wherever necessary.

Q.1. Fill in the blanks. (5)


1. Which of the following is not a Java features?
a) Object-oriented b) Architecture Neutral
c) Use of pointers d) Dynamic
2. is used to find and fix bugs in the Java programs.
a) JRE b) JDK
c) JDB d) JVM
3. a
Which of the following is reserved keyword Java?
in
a) main b) object
c) system d) strictfp
4. Which one a
of the following is java keyword?
a) Void b) Public
c) While d) Switch
5. Which one of the following languages is pure object oriented language?
a) C b) C#
c) C++ d) Java

Q.2. (5)
State True/False.

new string() function.


1. To create string we use
2, Assignment operator is evaluated Left to Right.
Variable name can begin with letter, "", or""
3 a

4. Interfaces can be instantiated.


5. Java is case sensitive language
(10)
Q.3. Answer the following. (Solve any 5)

1, Write in details about literals in java


What is Boolean logical
operators with it's types.
3. What are the Data Types supported by Java?
4, What is JVM?
Java 0) AVDI
5.
What is Exception handling
in java?
6. What is an Applet?

Answer the following in


Q.4. detail. (Solve any 6)

1.
Write in Detail about class in Java.
Write in detail about Jump statement.
2.
What is multithreaded programming in
3. detail.
4.
What is Applet programming? Explain in detail.
5.
What is AWT explain in detail?
6.
What is exception handling explain in detail?
7.
What is event handling explain in detail?

Os Answer the following in detail. (Solve any 1)

1. Write in detail about Applet Skelton.


2. Write in details OOP Principles.
CB
ILAK MAHARASHTRA VIDYAPEETH,P UNE.
BACHELOR OF COMPUTER APPLICATIONS (B.C.A.)
SPECIALIZATION IN CYBER SECURITY (CS)
EXAMINATION: JUNE- 2022
SEMESTER - IV
Sub: Java / Java Programming
(BCA- 431/441/BCA-440-18/BCA-440-20/BCA-CS-440-20)

Date : 13/06/2022 Total Marks :


60 Time: 02.00 pm to 4.30pm

Instructions:
1. All questions are compulsory unless and otherwise stated.
2. Bold figures to the right of every question are the maximum marks for that question.
3. Candidates are advised to attempt questions in order.
4. Answers written illegibly are likely to be marked zero.
5. Use ofscientificcalculators, L og tables, Mollier Charts is allowed.
6. Draw neat and labelled diagranns wherever necessary.

Q.1. Fill in the blanks. (5)


1. What is byte code in java
a) name of java source code file b)code generated by java compiler
c) code generated by JVM d) block of code written inside a
class
2. method is used to wait fora thread to finish.
a) sleep()
b) join()
c) stop()
d) isAlive)
3 operator dynamically allocates memory
for an object
a)this
b) new
c) super
d) class
4. Default access specifier for
the members declared in the interface is
a) static
b) abstract
c) public
d) private
5. The wrapping of data
and functions into a single unit is
called as
a) inheritance
b) encapsulation
c) abstraction
d) polymorphism
Q.2. State True/False.
1. Constructor can have return
value. (5)
2. Applet contains the main() method.
3. Interface can be instantiated.
4. All the classes in java.lang
package are automatically
compiled. imported when a program is
S. The garbage collection will run
immediately the system in
0.J. Auswer the following,
(Solve nuy 5)
|, Explain tho
construclor and
typcs of constructor
1. What
is differenco bctwccn (10)
). What is multi default and
tlhrending? protected access
4. What
is (ually keyword?
specifier.
S. What is tlhe usc
6. Define of this koyword.
tlho use
ofpackago,
Q4. AuswGr
tlhe following
1.
isdifferencolndetall, (Solve nuy
What

2. How cxceplon betwccn 6)


abstrnct
3. Explain lhandling cluss
4, Explainstatievariable isdoncinjuva? adinterface.
S. Explaintlhe00PS nndstaticmothods,
6. List tlhrend fentures (30)
lHfe
dilercnt cydle
1. Difference modlfiers.evcts.
belwecn
Q5,Answer slring
nnd
stringbuilder.
(hefollowing
\. Witc
2. Wite njavaproganm
ludetail,
aprogram loreverse (Solve
nny
toprint (hegivCn1)
fhcorial
munbcr.
of given a mumbcr.

(10)
TILAK MAHARASHTRA
BACHELOR OF COMPUTER VIDYAPEETH, PNE CS/CB
EXAMINATION: APPLICATIONS (B.C.A.)
DECEMBER
FOURTH SEMESTER -2019
Sub: Java (BCA –
10/12/2019 431/441)
Date : Total Marks : 60
Instructions: Time: 02.00 pm to 4.30 pm
1Al auestions are compulsory tunless
2. Boldfigures to the right of and
Candidates are every questionotherwise stated.
are the maximunm
advised to attenpt questions marks for that question.
4.
Answvers written illegibly are in order.
TIse of scientific likelyto be marked zero.
calculators, Log tables,
Draw neat and Mollier Charts is
labelled diagrams allowed.
wherever necessary.
0.1., Fll in the blanks.
A
iava file with extension (5)
a) HTML tag
.class' contains.
c) java source code b) java bytecode
which of the following is d) None of the above
valid specifier with the
a) public main) method.
c) protected b) private
d) default
what is the return type
3. of a method that does not return any
a) int value?
c) void b) float
d) double
A
Which type of inheritance in Java
programming is not supported ?
a) multiple inheritance using classes
b) multiple inheritance using
interfaces
c) multilevel inheritance
d) single inheritance
5. If there is a try block, then
a) there should be catch block b) there may not be any catch block
c) there should be a finally block d) there may be multiple catch blocks

Q.2. State True/False.


(5)
Every class must contain a main() method.
1.
2 Java uses interpreter and compiler.
3. No method can call another method without create an object of the class to which it is
defined.
4. Private members of a class can be inherited by a subclass, and become protected
members in subclass.
5. Implementation of two interfaces shows as class C implements A,B

Q.3. Answer the following. (Solve any 5) (10)


1. What is a use of destroy() method in applet.
2. Define package along with its syntax.
3. Explain final() method.
4. Join() method why we use in thread?
5. What is constructor? Explain its types.
6. What is bytecode?
(30)
2.4. Answer the following in detail. (Solve any 6)
I. Explain deadlock concept using example. Stream.
Input Stream and File Output
State the difference between File
3. Write a short note on JVM.
4. Explain applet lifecycle. throws.
finally, throw and
5. What is exception? Explain try, catch, 1/2

Java (BCA – 431/BCA-441) AHM/I


Explain static
keywordi along witth example.
& abstract class? Explain it with example.
What is
7.

Answer the following in detail. (Solve any 1) (10)


Wnte a java
program to accept number from user and print its factorial.
program 1 to acccpt 10 integer elements from user and remove duplicate
Write a java
2. it.
clements from it, print
TILAK MAHARASHTRA CS/CB
BACHELOR OF COMPUTER VIDYAPEETH, PUNE
EXAMINATION : APPLICATIONS
APRIL/MAY- 2019 (B.C.A.)
FORTH SEMESTER
Sub: Java (BCA–
431/BCA-441)
13/05/2019
Date : Total Marks :
Iustructions: 60 Time: 02.00 pm to 4.30pm
1. AllGquestions are compulsory
2.
nless
Bold figures to the right of every and otherwise stated.
Candidates are advised to attempt
question are
3.
the maximum marks for that question.
Answers written illegibly are questions order.
4.
likely in
Useof'scientific calculators, to be marked zero.
Logtables, Mollier
6.
DraV neat and labelled diagrams Charts
wherever necessary. is allowed.

Q.1:
Fill in the blanks.
The basic language
functions in java are (5)
stored in a package
a) java.util called
c) java.applet b) java.awt
2. To implement an interface include d) java.lang
the
a) extends clause in the class definition.
c) implements b) import
3. Java implements d) export
strings as objects of type
a) String
c) double b) int
4. supports a buffered input stream. d) byte
a) StreamReader
b) BufferedReader
c) StreamWriter
5. d) Bufferedwriter
A class that is inherited is
called the
a) Super class
b) sub class
c) inner class
d) None of above
Q.2. State True/False.
1. We make use (5)
of the keyword extends to inherit a class.
2. The body
of a loop can be empty in java.
3. Constructors
always have a return type.
4. Classes which implement interfaces cannot
have additional member of their own.
J. A string is less than another string, if it comes before the other in dictionary order.

Q3. Answer the following. (Solve any 5)


(10)
1. Explain
stringBuffer class.
2. Explain the use
of finally block.
J. Explain the use of Runnable interface.
4. What is
constructor?
J. Explain the use of Super() keyword.
O. Explain the concept of interfaces.

Java (BCA - 431/BCA-441)AGD/II l/2


Answer the following in detail. (Solve
any 6)
0.4. Explain thread lifccycle along with
1. diagram. (30)
2. Write a note on Java Virtual machine.

3. State the difference betwecn overloading


example.
and overriding. Explain
it along with
4. Defineinheritance. Explain its types
along with example.
5. Explain the difference between
throw and throws
note on thread priorities
Write a along with cxample.
along with example.
1. Explain applet lifecycle in detail.

Answer the following in detail.


0.5. (Solve any 1)
1
Write a program to accept
string irom user and print (10)
2 Write a program to accept the count of vowcl.
number from user and print
factorial.

22

Java (BCA-431/BCA-441) AGDII


MAHARASHTRA VIDYAPEETH, CS/CB
COMPUTER APPLICATIONS PUNE
TILAK
SYSTEM/CHOICE BASED CREDIT (B.C.A.)
OF
BACHELOR
SYSTEM
CREDITS EXAMINATION :MAY - 2018
FOURTH SEMESTER –
Sub:, Java (BCA .431/BCA-441)
:
Total Marks 60 Time: 02.00 pm
10/OS/2018 to 4.30 pm
Date : Instructions: are compulsory unless and otherwise stated.
questions
Boldfigures to the. right
1. All ofevery question are the maximum marks
advisedI to altempt questions in order, for that question.
2. Candidates are
are likely to be marked zero.
3.
Answers
written illegibly
4.
ofscientific calculators, Log tables, Mollier Charts is allowed.
5. Use
neat and labelled diagrams wherever necessary.
d

6.
Draw
blanks.
Fill in the
applet is a dynamic program which is active onthe
Q.1. (5)
1. An Computer.
a) Server b) Client
c) Bytecode d) JVM

The statement allows your program to throw an


2. exception.
a) throw b) throws
c) exception d) throwable
3. Interfaces do not have variables.
a) int b)data
c) instance d) char

4. There are types of mouse events.


a) Five b) Eight
c) Six d) Seven

5. The method which is commonly used to wait for a thread to finish is


a) wait() b)stop()
) join) d) suspend0

Q.2. State True/False. (5)


1. Multithreaded programming allows to write programs that do many things

simultaneously.
2. A class can implements more than one interface
3. System.err is object of type InputStream.
4. Applets contain the main() method.
occurs.
to an integer, truncation
5 When floating point value is assigned
(10)
Q.3. Answer the following. (Solve any 5)
1. What is mean by Dynamic method dispatch?
2 What is an Exception?
3 What is the use of the wait() method?
literals supported by java. 1/2
T
List the various types of

Java (BCA– 431/BCA-441) AGD/I


5. What is synchronization?
super keyword.
6 What arc the two gencral forms of

any 6)
Q.4. Answer the following in detail. (Solve (30)
cxample.
What is inner class? Explain it with
2. Explain Object oricnted programming. Describe 1n brief the 0OPs princinlee
3. Explain try, catch and finally block along with
example.
4. Explain layouts from AWT.
Give the difference in between Call by value and Call by reference
6. Write short on
a)lcons in Swing
b) Labels in Swing
7. What is an Array in Java? Describe how arrays can be initialized in java.

Q. 5. Answer the following in detail. (Solve any 1) (10)


1. Write a programn to check
if given number is perfect number or not.
2. Write a program to accept a value from user and print its factorial.

Java (BCA-431/BCA-441) 2/2


AGDII
CS
VIDYAPEETH, PIUNR
MAHARASHTRA APPLIOATIONS (B.C.A)
TILAK COMPUTER
BACHELOR OF NOVEMBER/DECEMBER- 2016
EXAMINATION:
FORTH SEMESTER
– 431)
Sub: Java (BCA
: Time: 02.00 pm to 4.30 pm
Total Marks 60
Date : 16/12/2016
Instructions: otherwise stated.
questions are compulsory unless and are the maximumn marks for that auestion
I. All ofevery question
2. Bold figures to the right order.
3. Candidates
are advised to attempt questions in zero.
to
illegibly are likely be marked
4. Ansuwers written allowed.
calculators, Log tables, Mollier Charts is
J. Use of scientific
labelled diagrams wherever necessary.
6. Draw neat and (5)
Q.1. Fillin the blanks. to classes that
an element to be seen outside the current package, but only
1. To allow as
your class, that element should be declared
are the direct subclasses of
a) Default
b)Private
d) Public
c) Protected.
2. Allexceptions are subclasses of the class
a) throwable b) runable
d) catch
c) try
3. A class that is inherited is called the
a) subclass
b)Super class
c) inner class
d) nested class

4. The operator dynamically allocates memory for an object.


a) arithmetic b) static
c) bitwise d) new
5. Object is an of class.
a) instance b) inherit
c) handle d) reference

State True/False. (5)


Q.2.
1 A class can implement more than one interface.
2. Try statements cannot be nested.
3 An inner class can be defined within any block scope.
4. The finally block will be executed even if an exception is not thrown.
5. You should include a package command as the first statement in a java source file.

Q.3. Answer the following. (Solve any 5) (10)


1. Define Thread.
2 What is Bytecode?
3. Define Nested class.
4. Explain indexOf) and last IndexOf() from string.
5. What is Exception?
6. Define Stream.
nswer the following in detail. (Solve any 6)
Writc a note on Java Virtual Machinc (JVM). (30)
State thc differencc betwccn Ovcrloading and Overriding along with example.
3. Explain Thrcad prioritics along with cxample.
4. Explain Applet lifccyclc.
5. Writc a java programn to count vowels from given
string.
6. Explain Try, Catch, Finally, Throw, Throws from exception along
with example.
7. What is Delegation Event Model?

Answer the following in detail. (Solve any 1)


1. Wrile a java program to create and run thread to generate (10)
10 terms of Fibonacci
serics.
2. Describc Event Listener interfaces and the specific methods
contained in them.

Java (BCA - 431) AE/II


MAHARASHTRA VIDYAPEETH, PUNE R
COMPUTER APPLICATIONS (B.C.A.)
TILAK OF NOVEMBER
/DECEMBER 2016
BACHELOR
EXAMINATION1• SEMESTER
FOURTH BCA-421)
(
Sub: Java
: 80 Time: 2.00 pm to
Total Marks 5.00 pm
/2016 otherwise stated.
: 13/12 unless and markss
Date Instructions: copulsor are the maximum for that question.
q:stions
are ofevery guestion orde
Bold
). 4l figres tothe right attempl questions in zeo
advised to marked
Canditates are illegibly are likely to be Mollier Charts is allowed.
tables,
Answers written calculators, Log wherever necessary.
4 of'scientific diagams
5. l'se andlabelled
Dr
neat (5)
6. any 5)
blanks. (Solve a class
0.1. A) Fill
in the instantiate any object
of
used to
1 The --keyword of all
subclasses.
super class interfaces defined in --
The ----class is implementing
are created by
2.

3. Event listeners
package. any interface are by fault.
methods defined in overridden
4. Al the
that a method cannot be
-- keyword indicates
s The
ajava source file
should be
called. as -
6. The
extension of
methods dynamically at run time this is
calls to the
7. Java resolves the
(5)
(Solve any 5)
B) State True/False. same signature
methods in the class have to have
1. All the overloaded corresponding finally block only
must have
2. Every try block values in Java
operator cannot be used with integer
3. The % one object acquires the properties of
4. Inheritance is
the process by which
another object. declaration
an initialization value at the time of
every value gets
5. In Java,
depending on its data type. execution of the
method defined in them for
must have main()
6. Applets is Java
program. an exception explicitly.
Java program to throw
7.
The throw keyword is used in (10)

any 5)
C) Answer the following. (Solve
Explain how it provides portability in Java?
code?
I. What is byte
2. What is an abstract class
? Explain with example

What is typecasting in Java? public.


3. protected and
4. specifies in Java such
as private
Explain the Scope
5. What are features of Java?
6. What is garbage collection in Java?

I/2

CA-421) AE /I
(Solve any 6)
following in detail.constructors in Java. (30)
Answer the
Q.2. Explain various
types of
1. in Java.
Explain OOP principles catch blocks in exception handling in Java.
2. use of multiple try
Explain the inheritance in Java.
3. types of
various clase
4. Explain String. Explain methods of the
class
5. Explain the an example.
are inner classes ? Give
6. What event listener? Give an example each.
What are
event source and
event,
7.

detail.
Answer the following in (30)
Q.3.
Explain different data
types available in Java. What is automatic type
1.

conversion in Java ?
2 Write a program to deinonstrate
use of different types of constructors in Java
a perfect number or not
Write a program to check if the given number is
3

22
Java (BCA-421)AE
/III
CS/CB
VIDYAPEETH. PUNE
TILAK MAHARASHTRA (B.C.A.)
BACHELOR OF COMPUTER APPLICATIONS
EXAMINATION: APRIL/MAY 2019
FOURTH SEMESTER
Sub: JAVA(BCA-436/447)
Total Marks
:
60 Time: 10.00 am to 5.00 pm
:25/04/2019
Date
ofmarks is as follows.
Instruction: Bifurcation CS/CB
Total Marks 60
Programme 25
Programme 2 25
Viva 10

an employee
1. Writeaprogram to accept
following information about

a. Name, address, designation


some extra attributes
b. Create subclass
manager from the employee class .Add
class.
c. Demonstrate use overloading, overriding methods and nested
of

sum of digits of that


2. Write a program to accept
a no. and print reverse of the no. and
no.

-Cut-
no.s and remove the occurrence of the given no from
1. Write a program to accept array of 10
the array.

2. Write a program to accept a no.


on the command line and check if it's an Armstrong
no. or not.

-Cut-
a
1.Write a program to create an applet to accept string in textbox and change all
a the letters in d

given string to Uppercase at the click of 'show' button.


2. Write a program to accept a no. and print factorial of that no.

--Cut

.
1. Writea program to create an applet When we click inside an applet at 2 different places the
program draws a line from point(xl,yl) to point (x2,y2).

2. Write a program to print the sum of all the odd no.s between 1-100.

JAVA (BCA-436/447)
1/2
VIDYAPEETH, PUNE.
TILAKMAHARASHTRA
COMMPUTERAPPLICATIONS (B.C.A.)
BACHELOR OF DECEMBER 2023
EXAMINATION:
SEMESTER Programminot
BCA-446-18/BCA-447] Lab- Java
FORTH
BCA-CS-446-20/ Lab-Java
Sub:- (BCA-446-20/ Time: 10:00 am to 5:00
pm
: 30/60
Total Marks
Date : 13/12/2023
60Marks
marks is ns follows
Instruction: Bifurcation of Marks 30Marks batch2015 to 2019)
Total (or
20
. 15
Programme 20
.

Progranme 20
Viva

string.
alternate character from a given
program to display zero then throw
)Write a java
from a user, if it is
program to accept a number then
2)Write a java Zero'". If it is non-numeric
Number is is
userdefined Exception otherwise check whether it
is Invalid"
generate an erorNumber
palindrome or not.
Cone
shape. Drive three classes sphere.
abstract class
1) Write a Java program Create
it.
and cylinder from volume of all (use method overriding)
Calculate Area and
pattern
program in Java to display following
2) Write a

55555
4444
333
22
1

--CUT
Fahrenheit
convert the temperature in Centigrade to
1) Writea Java program to
method.
create an interface Shape with the getArea)
program to Shape
Write a Java
Circle, and Triangle that implement the
Rectangle,
2) Create three classes method for each of the three
classes.
interface. Implement the
getArea)

-CUT-
a prime nunber or not.
program to check whether the given integer is
Writea Java
user
user,
it is greater than 1000 then throw
program to accept a number from If number.
) Write a java otherwise display the factors of that
out of Range"
defined exception "Number is
(Use static keyword)

Lab- Java Programming


RCA-CS-446-20/ BCA-446-18/BCA-447]
Write a Java
P

following star pattern.


Write a Java program to display

---CUT
a JPanel.
1) Write a Java Swing program to create a single ball bouncing Inside

Boundng Ball

2) Write a Java program to display following pattern.


1234567
2345 67
34567
4567
567
67
7

-CUT
Write a Java program to simulate traffic signal using multithreading.

swap their values using


Write a Java program to accept two integers from user and
temporary variable.
-CUT

Wnte a Java program to accept string from


user and convert it in opposite case. [Lowercase to
uppercase & vice versa].

abstract methods startEngine)


Write Java program to create an abstract class Vehicle with
a
u

StopEngine ). Create subclasses Car and Motorcycle that extend


the Vehicle class and implement
respective methods to start and stop the engines for each vehicle type.

22
A-446-20/ BCA-CS-446-20/ BCA-446-18/BCA-447]Lab- Java Programming

You might also like