What is Java

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

How do we write a multi-line comment in Java?

/* this is a comment */

How do we write a single line comment in Java?

//this is a comment

Every code statement in Java must end with...

;

The 8 primitive data types in Java are...

Byte, short, int, long, float, double, boolean, char

What does it mean to be Strongly typed?

Case sensitive and there are strict restrictions on mixing values of different data types

What is the return type of the following method: public static double doSomething () {//some code to execute } ?

Double

This statement will verify a condition and execute a block of code if the condition evaluates to true

If statement

These data types specify the size and type of variables

Primitive data types

This special method is used to initialize objects

a constructor method

What does object-oriented mean?

a style of programming that makes use of classes of objects linked with methods which they are associated

What is the correct way to write the main method in Java?

public static void main(String[] args) {}

This statement will execute one of many possible code blocks to execute based on an expression

switch statement

Which package contains the Java compiler?

the JDK

Which method is required in every Java application?

the main() method

What is garbage collection in Java?

the process of managing memory automatically by deleting objects from heap memory that have no references


संबंधित स्टडी सेट्स

Depreciation - Definition and explanations Merit/Excellence questions

View Set

NCLEX Questions & Explanations (PT 2)

View Set

HESI Case Study - Coronary Artery Disease

View Set

UL + LL + BACK Clinical Questions

View Set

ANATOMY FINAAAAAAAAL!!! HOLY MOTHA OF GAAAAAWD!!!!!! PART 1

View Set

Chapter 24 (new book) Hors D'Oeuvres

View Set