Skip to content

Instantly share code, notes, and snippets.

Why do we hide data behind getters and setters?
What is the difference between an ArrayList and a LinkedList? When should you use them?
Explain insides of a HashMap
Explain insides of a TreeMap
Abstract class vs interface
Why calling public methods in a constructor is a bad practice?
Overriding vs overloading
Explain exceptions (checked/unchecked)
try-catch-finally - in which order should the exceptions be handled?
What are generics? Why don't just use Object?
package com.company;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
#include < conio.h>
#include <iostream>
using namespace std;
int main()
{
int i, j, N = 3, M = 3, a[3][3], b[3][3]; int c[3][3]; // N - число столбцев. М - число рядков.
@isamotiuc
isamotiuc / cpp
Last active December 9, 2017 19:40
Сложение матриц
#include <stdio.h>
#include <conio.h>
#include <string>
#define N 2
#define M 3
int main()
{
int x,y;
float a[M][N],b[M][N],c[M][N];

Keybase proof

I hereby claim:

  • I am isamotiuc on github.
  • I am igor_samotiuc (https://keybase.io/igor_samotiuc) on keybase.
  • I have a public key ASC1_HnquDbfgdANxhDlV40wumKIkTZm0ny98reCPEKHwQo

To claim this, I am signing this object: