Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to declare a package named com.example.app.
Java
package [1];🎯 Drag options to blanks, or click blank then click option
Attempts:
3 left
2fill in blank
mediumComplete the code to import the class Utils from package com.example.utils.
Java
import [1].Utils;
🎯 Drag options to blanks, or click blank then click option
Attempts:
3 left
3fill in blank
hardFix the error in the package declaration to follow Java syntax rules.
Java
package [1];🎯 Drag options to blanks, or click blank then click option
Attempts:
3 left
4fill in blank
hardFill both blanks to create a class Helper inside package org.tools.
Java
package [1]; public class [2] { // class content }
🎯 Drag options to blanks, or click blank then click option
Attempts:
3 left
5fill in blank
hardFill all three blanks to declare package net.app.utils, import java.util.List, and define class DataHandler.
Java
package [1]; import [2]; public class [3] { // code here }
🎯 Drag options to blanks, or click blank then click option
Attempts:
3 left
