for-coder
425 subscribers
112 photos
57 videos
25 files
147 links
Download Telegram
#quiz

let x = 5;
let y = x++;
console.log(--y);
public static void main(String[] args) {
String s1 = "abc";
String s2 = new String("abc");
System.out.println(s1 == s2);
System.out.println(s1.equals(s2));

}


Weekly #quiz
class Person {
private String name;
private Address address; // Address object stored privately

public Person(String name, Address address) {
this.name = name;
this.address = new address; // indirect assignment of the object I.e copy
}

public String getName() { //getter method for the name
return name;
}

public Address getAddress() { //getter method for the Address
return address;
}
}

#Friday #quiz
👍1
#quiz

let x = 5;
console.log(x++ + ++x);
👍1