Complete the code to create a new object of class Car.
Car myCar = new [1]();To create an object, use the class name with new. Here, Car is the class name.
Complete the code to create a new object of class Book with a constructor that takes a title.
Book myBook = new Book([1]);String values must be in double quotes. So, "Java Basics" is correct.
Fix the error in creating an object of class Person with no-argument constructor.
Person p = [1] Person();The new keyword is required to create a new object in Java.
Fill both blanks to create an object of class Student and call its method study.
Student [1] = new [2](); [1].study();
Variable name can be 's' and class name must be 'Student' with capital S.
Fill all three blanks to create an object of class Laptop with brand and price, then print the brand.
Laptop [1] = new [2]([3], 1200); System.out.println([1].brand);
Variable name is 'myLaptop', class name is 'Laptop', and brand is a string "Dell".