Sobes.tech
Junior — Middle

Tell us about your knowledge and experience working with Java.

sobes.tech AI

Answer from AI

I am familiar with the basics of Java, including syntax, object-oriented programming, working with collections, exceptions, and input-output streams. I have experience writing simple and medium-complexity applications, used Java SE, and am familiar with basic libraries.

I have worked with concepts such as classes, interfaces, inheritance, and polymorphism. I understand multithreading, and can use synchronized and volatile for managing concurrent access.

An example of a simple class overriding equals and hashCode:

public class Person {
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Person person = (Person) o;
        return age == person.age && name.equals(person.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age);
    }
}

I am also familiar with using the Java Collections Framework, data streams, and basic principles of working with databases via JDBC.

Tell us about your knowledge and experience working… - sobes.tech