Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

i want to help you

Beoordeling
-
Verkocht
-
Pagina's
17
Geüpload op
05-04-2026
Geschreven in
2025/2026

Lecture notes of 17 pages for the course computer engineering and IT infrastructure at computer engineering and IT infrastructure (i want to help you)

Instelling
Vak

Voorbeeld van de inhoud

Chapter -1

1.What are OOP's concept in java? Explain (3m,4m)

OOP’s concepts in Java are used to design programs using objects. The main
concepts are:

• Abstraction: Hiding details and showing only important features.

• Encapsulation: Wrapping data and methods into one unit.

• Inheritance: One class gets properties of another class.

• Polymorphism: One object can take many forms.


1. How polymorphism can be achieved in Java? (2m)
• Compile-time polymorphism: Method overloading
• Runtime polymorphism: Method overriding


2.What are the features of Java? (Or)Explain any 4? (4m) (2m)

Features of Java

1. Simple
• Java syntax is easy and similar to C++.
• Removes complex features like pointers and multiple inheritance.

2. Object-Oriented
• Uses classes, objects, inheritance, and polymorphism.
• Helps in code reusability and modular design.

3. Platform-Independent
• Follows WORA (Write Once, Run Anywhere).
• Uses bytecode that runs on JVM.

4. Secure
• No direct memory access using pointers.
• Provides security through bytecode verification.

5. Robust
• Uses garbage collection for memory management.
• Has strong exception handling.

6. Multithreading
• Supports multiple threads at a time.
• Improves performance and CPU usage.

, 7. Distributed
• Supports RMI for distributed applications.
• Can work with network-based systems.

8. High Performance
• Uses JIT compiler for faster execution.
• Efficient memory management.

9. Dynamic
• Supports runtime class loading.
• Can modify code at runtime.

10. Portable
• Runs on any system with JVM.
• No need to recompile for different OS.



3.What is an Array and write the syntax of initialization of an array in Java (2m)

An array is a collection of elements of the same data type stored in a continuous
memory location.

Syntax:

datatype[] arrayName = new datatype[size];

Example:

int arr[] = {10, 20, 30, 40, 50};



System.out.println(arr[0]); // 10

System.out.println(arr[2]); // 30

6. Types of array?

Types of Array

• One-Dimensional Array:

Stores elements using one index.

Example:

int arr[] = {1,2,3};

• Two-Dimensional Array:

Stores elements using two indices (rows and columns).

, Example:

int arr[][] = {{1,2},{3,4}};

• Multidimensional Array:

Stores elements using more than two indices.

Example:

int arr[][][] = {{{1,2},{3,4}}};



5. What is type casting and what are the different types of type conversion? (3m)

Type casting is the process of converting a value of one data type into another data type.

There are two types:

• Widening (implicit or automatic): Converting smaller data type to larger data
type automatically.
• Narrowing (explicit): Converting larger data type to smaller data type
Example:

class Test {

public static void main(String args[]) {

// Implicit Casting

int a = 10;

double b = a; // int → double

System.out.println(b); // 10.0



// Explicit Casting

double x = 10.5;

int y = (int)x; // double → int

System.out.println(y); // 10

}

}

7. Difference Between Primitive and Non-Primitive Data Types in Java Programming
(or)

Geschreven voor

Vak

Documentinformatie

Geüpload op
5 april 2026
Aantal pagina's
17
Geschreven in
2025/2026
Type
College aantekeningen
Docent(en)
Smitha
Bevat
Alle colleges

Onderwerpen

€6,03
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
sharathsappannanavar

Maak kennis met de verkoper

Seller avatar
sharathsappannanavar
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 maand
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen