Java Basics Quiz

Medium

Test your knowledge on Java Syntax & Basics.

2 questions Medium
1

Which data type is used to create a variable that should store text?

A.myString
B.string
C.String
D.Txt
2

How do you create a single-line comment in Java?

A./*
B.//
C.<!--
D.#

Get the App

Access 1000+ quizzes, track progress, and learn offline.

Download Now