course content

Course Content

Java Basics



Now, let's tackle a simple task where you need to correctly fill in the primitive data types in the blanks:


  1. 1. You can peek at the list of primitive data types.
  2. 2. Pay attention to the letter f. Only one primitive data type is marked with f.

package com.example;

public class Main {
    public static void main(String[] args) {
        byte myNum = 14;
        double myFractional = 14.928;
        short myBiggerNum = -710;
        char myLetter = 'B';
        boolean myBool = true;
        float myWho = 1.74f;
        System.out.println("It's working, well done!");

Everything was clear?

Section 2. Chapter 2