You are on page 1of 8

Enrollment No: 201260116011

SAL EDUCATION
SAL ENGINEERING AND TECHNICAL INSTITUTE
Opp. Science city, Sola-Bhadaj Road, Ahmedabad, Gujarat 380060
Ph:- 079 67129000 Website: www.sal.edu.in

Student’s Weekly Report of Internship

Student Name: Gohil Vishva Ashokbhai


Enrollment Number: 201260116011
Name of Organization: QSpiders
External Guide Name: Shivu D.
External Guide Contact details: Email: utti.pavan@qspiders.in
Mob No. +91 8867277575
Internal Faculty Guide Name: Prof. Neil Saxena

Work done in last Week with description (Attach supporting Documents Like
Diagram, Data Dictionary, Screen Shot of each Work):

1. Oops concepts
2. Joins in sql
3. Background property, text property, font property

Plans for next week:

1. Oops concepts in continue


2. Order by clause and statements of sql
3. Box model, position property, box-sizing property

Total Working Hrs: 40 Hrs Signature of Student:

The above entries are correct and the grading of work done by Trainee is
Excellent Very Good Good Fair Below Average Poor

Signature of External Guide with Company Seal: Signature of Internal Guide

Date: Date:

Page | 1
Enrollment No: 201260116011

Week 7

Java

❖ OOPs:

➢ Abstraction:

It is the process of hiding the implementation and showing only the functionality to the
user .

Ex: abstract class Shape {


abstract void draw();
}

class Circle extends Shape {


void draw() {
System.out.println("Drawing Circle");
}
}

Page | 2
Enrollment No: 201260116011

➢ Inheritance:

It is a mechanism in java by which one class is allowed to inherit features of another


class. we achieve this by ‘extends’ keyword. It is also known as ‘is-a’ relationship.

Ex:
// Superclass
class Animal {
void eat() {
System.out.println("Animal is eating...");
}
}

// Subclass inheriting from Animal


class Dog extends Animal {
void bark() {
System.out.println("Dog is barking...");
}
}

public class Main {


public static void main(String[] args) {
// Creating an object of subclass
Dog dog = new Dog();

// Calling methods from both superclass and subclass


dog.eat(); // Output: Animal is eating...
dog.bark(); // Output: Dog is barking...
}
}

➢ Polymorphism:

The ability to perform a task into multiple way is known as polymorphism.


It consists two types : compile time polymorphism and run time polymorphism.
Compile time polymorphism is achieved by methos overloading and run time
polymorphism is achieved by method overriding.

Page | 3
Enrollment No: 201260116011

Ex: class MathOperations {


int add(int a, int b) {
return a + b;
}

double add(double a, double b) {


return a + b;
}
}

public class Main {


public static void main(String[] args) {
MathOperations math = new MathOperations();
System.out.println(math.add(5, 7)); // Output: 12 (int version of add() is
called)
System.out.println(math.add(3.5, 2.5)); // Output: 6.0 (double version of
add() is called)
}
}

➢ Encapsulation:

It is refers to the bumdling of data and methods that operates on the data into a single
unit, often called as class. It helps in controlling the access to the data hiding the
implementation details from the outside world.

Ex: public class Student {

private String name;


private int age;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
if (age >= 0) {
this.age = age;
} else {
System.out.println("Age cannot be negative.");
}
}
}
Page | 4
Enrollment No: 201260116011

SQL

❖ Joins:

It is used to retrive the data from multiple tables simultaneously. There are some tyoes of joins
in sql.

➢ Inner join:

It is used to obtained the matching records from the table.

Syantax : SELECT column_name(s)


FROM table1
INNER JOIN table2
ON table1.column_name = table2.column_name;

➢ Cross join:

Is returns the products of two tables. All the records of table 1 will merge with all the records of
table2.

Syntax: SELECT column_name(s)


FROM table1
CROSS JOIN table2;

➢ Left outer join:

It returns all the unmatched records of the left table along with matched records of right table. If
there is no match then null value is returned .

Syntax: SELECT column_name(s)


FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;

➢ Right outer join:

It returns all the unmatched records of the right table along with matched records of the left
table. If there is no match records then null value is returned.

Syntax: SELECT column_name(s)


FROM table1
RIGHT JOIN table2
ON table1.column_name = table2.column_name;

Page | 5
Enrollment No: 201260116011

Web Tech

❖ Background property:

➢ Background-color:

Ex: background-color: #ff0000; /* Red background color */

➢ Background-image:

Ex: background-image: url('image.jpg'); /* Background image from


image.jpg */

➢ Background-repeat:

Ex: background-repeat: repeat-x; /* Repeat horizontally */

➢ Background-position:

Ex: background-position: center top; /* Centered horizontally and at top */

➢ Background-size:

Ex: background-size: cover; /* Cover the entire background */

➢ Background-attachment:

Ex: background-attachment: fixed; /* Background image remains fixed


while scrolling */

Page | 6
Enrollment No: 201260116011

❖ Font property:

➢ Font-style:

Ex: font-style: italic; /* Italic font style */

➢ Font-variant:

Ex: font-variant: small-caps; /* Small caps font variant */

➢ Font-weight:

Ex: font-weight: bold; /* Bold font weight */

➢ Font-size:

Ex: font-size: 16px; /* Font size of 16 pixels */

❖ Text property:

➢ Text-align:

Ex: text-align: center; /* Center-align text */

➢ Text-decoration:

Ex: text-decoration: underline; /* Underline text */

➢ Text-transform:

Ex: text-transform: uppercase; /* Convert text to uppercase */

➢ Text-shadow:

Ex: text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add a shadow to text*/

Page | 7
Enrollment No: 201260116011

Page | 8

You might also like