Differentiate between Procedure-Oriented Programming (POP) and Object-Oriented Programming (OOP). પરશન.1 (અ) પરોસિજર-ઓસરએનટડ પરોગરાસ િગ (POP) અન ઑબજક ટ- ઓસરએનટડ પરોગરાસ િગ (OOP) વચચ તફાવત કરો.
[3 marks]Explain Super keyword in inheritance with suitable example. (બ) યોગય ઉદાહરણ િાથ inheritance ાિ Super કીવડડ િ જાવો.
[4 marks]Define: Method Overriding. List out Rules for method overriding. Write a java program that implements method overriding. (ક) વયાખયાસયત કરો: થડ ઓવરરાઇસડિગ. થડ ઓવરરાઇસડિગ ાટના સનય ોની યાદી બનાવો. એક જાવા પરોગરા લખો જ થડ ઓવરરાઇસડિગન ઇિપલી ટ કર છ.
[7 marks]Describe: Interface. Write a java program using interface to demonstrate multiple inheritance. (ક) વણડવો: ઇનટરફિ. સટટપલ ઇનહસરટનિ ન દરાડવવા ાટ ઇનટરફિનો ઉપયોગ કરીન જાવા પરોગરા લખો.
[7 marks]Explain the Java Program Structure with example. પરશન.2 (અ) ઉદાહરણ સાથ Java પરોગરામ સટરકચર સમજાવો.
[3 marks]Explain static keyword with suitable example. (બ) યોગય ઉદાહરણ િાથ static કીવડડ િ જાવો.
[4 marks]Define: Constructor. List out types of it. Explain Parameterized and copy constructor with suitable example. (ક) વયાખયાસયત કરો: કનટટરકટર. તના પરકારોની યાદી બનાવો. પરા ીટરાઇઝડ અન કોપી કનટટરકટરન યોગય ઉદાહરણ િાથ િ જાવો.
[7 marks]Explain the Primitive Data Types and User Defined Data Types in java.1 પરશન.2 (અ) જાવા ાિ પરીસ સટવ ડટા પરકારો અન યઝર સડફાઇન ડટા પરકારો િ જાવો.
[3 marks]Explain this keyword with suitable example. (બ) this કીવડડન યોગય ઉદાહરણ િાથ િ જાવો.
[4 marks]Define Inheritance. List out types of it. Explain multilevel and hierarchical inheritance with suitable example. (ક) ઇનહસરટનિ વયાખયાસયત કરો. તના પરકારોની યાદી બનાવો. multilevel અન hierarchical ઇનહસરટનિ ન યોગય ઉદાહરણ િાથ િ જાવો Q. 3 (a) Explain Type Conversion and Casting in java. પરશન.3 (અ) જાવા ાિ ટાઈપ કનવઝડન અન કાસટટિગ િ જાવો.
[3 marks]Explain different visibility controls used in Java. (બ) Java ાિ ઉપયોગ ાિ લવાતા સવસવધ visibility controls િ જાવો.
[4 marks]Define: Thread. List different methods used to create Thread. Explain Thread life cycle in detail. (ક) વયાખયાસયત કરો: થરડ. થરડ બનાવવા ાટ ઉપયોગ ાિ લવાતી સવસવધ પદધસતઓની િસચ બનાવો. થરડની લાઇફ િાઇકલ સવગતવાર િ જાવો.
[7 marks]Q. 3 (a) Explain the purpose of JVM in java. પરશન.3 (અ) java ાિ JVM નો હત િ જાવો.
[3 marks]Define: Package. Write the steps to create a Package with suitable example. (બ) વયાખયાસયત કરો: પકજ. યોગય ઉદાહરણ િાથ પકજ બનાવવા ાટનાિ પગલાિઓ લખો.
[4 marks]Explain Synchronization in Thread with suitable example. (ક) થરડ ાિ Synchronization ન યોગય ઉદાહરણ િાથ િ જાવો. Q. 4 (a) Differentiate between String class and StringBuffer class. પરશન.4 (અ) સટટરિગ કલાિ અન સટટરિગબફર કલાિ વચચ તફાવત કરો.
[3 marks]Write a Java Program to find sum and average of 10 numbers of an array. (બ) એરન ી 10 િિખયાઓનો િરવાળો અન િરર ાર રોધવા ાટ જાવા પરોગરા લખો.
[4 marks]I) Explain abstract class with suitable example. II) Explain final class with suitable example. (ક) I) યોગય ઉદાહરણ િાથ abstract class િ જાવો. II) યોગય ઉદાહરણ િાથ final class િ જાવો.
[7 marks]Q. 4 (a) Explain Garbage Collection in Java. પરશન.4 (અ) જાવા ાિ Garbage Collection િ જાવો.
[3 marks]Write a Java program to handle user defined exception for ‘Divide by Zero’ error. (બ) ‘Divide by Zero’ એરર ાટ યઝર સડફાઇન એકટકપિન હનડલ કરવા ાટ જાવા પરોગરા લખો.
[4 marks]Write a java program to demonstrate multiple try block and multiple catch block exception. (ક) Multiple try block અન multiple catch block exception દરાડવવા ાટ જાવા પરોગરા લખો.
[7 marks]Write a program in Java to create a file and perform write operation on this file.2 પરશન.5 (અ) ફાઈલ બનાવવા ાટ જાવા ાિ પરોગરા લખો અન આ ફાઈલ પર write ઓપરર ન કરો.
[3 marks]Explain throw and finally in Exception Handling with example. (બ) Throw અન finally એકિપરન હનડસલિગ ાિ ઉદાહરણ િાથ િ જાવો.
[4 marks]Describe: Polymorphism. Explain run time polymorphism with suitable example in java. (ક) વણડવો:પોલી ોસફડઝ . જાવા ાિ યોગય ઉદાહરણ િાથ રન ટાઈ પોલી ોસફડઝ િ જાવો.
[7 marks]Write a program in Java that read the content of a file byte by byte and copy it into another file. પરશન.5 (અ) જાવા ાિ એક પરોગરા લખો જ બાઈટ બાય બાઈટ ફાઈલના કનટનટ વાિચ અન તન બીજી ફાઈલ ાિ કોપી કર.
[3 marks]Explain the different I/O Classes available with Java. (બ) Java િાથ ઉપલબધ સવસવધ I/O વગો િ જાવો.
[4 marks]Write a java program that executes two threads. One thread displays “Java Programming” every 3 seconds, and the other displays “Semester - 4th IT” every 6 seconds.(Create the threads by extending the Thread class) (ક) જાવા પરોગરા લખો જ બ થરડોન એસકઝકયટ કર છ. એક થરડ દર 3 િકનડ "જાવા પરોગરાસ િગ" દરાડવ છ, અન બીજો દર 6 િકનડ "િ ટટર - 4થો IT" દરાડવ છ. (થરડ ન extending the Thread class દવારા બનાવો.)3