Stellar Study Cards

Java Programming Flashcards | Learn Java Basics and Key Concepts Fast

75 Total Cards in This Deck

Java Programming Flashcards | Learn Java Basics and Key Concepts Fast

Arrow keys or swipe to navigate cards

1 / 75 Total
Java Basics

What is the basic structure of a Java program?

2 / 75 Total
Java Basics

What is a variable in Java?

3 / 75 Total
Java Basics

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

4 / 75 Total
Java Basics

What is a method in Java?

5 / 75 Total
Java Basics

What is an array in Java?

6 / 75 Total
Java Basics

What is the purpose of the main method in a Java application?

7 / 75 Total
Java Basics

How do you compile and run a Java program?

8 / 75 Total
Java Basics

What does JVM stand for and what is its role?

9 / 75 Total
Java Basics

What is a data type in Java?

10 / 75 Total
Java Basics

What are control flow statements in Java?

11 / 75 Total
Object-Oriented Programming in Java

What is Object-Oriented Programming (OOP)?

12 / 75 Total
Object-Oriented Programming in Java

What is encapsulation in Java?

13 / 75 Total
Object-Oriented Programming in Java

Explain inheritance with an example.

14 / 75 Total
Object-Oriented Programming in Java

What is polymorphism in Java?

15 / 75 Total
Object-Oriented Programming in Java

What is an abstract class?

16 / 75 Total
Object-Oriented Programming in Java

How does method overloading differ from method overriding?

17 / 75 Total
Object-Oriented Programming in Java

What is an interface in Java?

18 / 75 Total
Object-Oriented Programming in Java

What is the difference between an abstract class and an interface?

19 / 75 Total
Object-Oriented Programming in Java

Define what a constructor is in Java.

20 / 75 Total
Object-Oriented Programming in Java

Explain the 'super' keyword in Java.

21 / 75 Total
Object-Oriented Programming in Java

What are getter and setter methods?

22 / 75 Total
Object-Oriented Programming in Java

What is the significance of the 'this' keyword in Java?

23 / 75 Total
Java Data Types and Variables

What are primitive data types in Java?

24 / 75 Total
Java Data Types and Variables

What is a variable in Java?

25 / 75 Total
Java Data Types and Variables

How do you declare a variable in Java?

26 / 75 Total
Java Data Types and Variables

What is a non-primitive data type in Java?

27 / 75 Total
Java Data Types and Variables

What is the default value of a boolean variable in Java?

28 / 75 Total
Java Data Types and Variables

Can you explain type casting in Java?

29 / 75 Total
Java Data Types and Variables

What does the 'final' keyword mean when declaring a variable in Java?

30 / 75 Total
Java Data Types and Variables

What is an example of a compound assignment operator in Java?

31 / 75 Total
Control Flow Statements

What is the purpose of control flow statements in Java?

32 / 75 Total
Control Flow Statements

How does the if statement work in Java?

33 / 75 Total
Control Flow Statements

Explain the difference between while and do-while loops in Java.

34 / 75 Total
Control Flow Statements

What is the use of the switch statement in Java?

35 / 75 Total
Control Flow Statements

What does the break statement do in Java?

36 / 75 Total
Control Flow Statements

When is the continue statement used in Java?

37 / 75 Total
Control Flow Statements

How can a for loop be used to iterate over an array in Java?

38 / 75 Total
Control Flow Statements

Can you use a switch statement with string cases in Java?

39 / 75 Total
Control Flow Statements

What is the flow of control in nested loops?

40 / 75 Total
Methods and Functions

What is a method in Java?

41 / 75 Total
Methods and Functions

How do you define a method in Java?

42 / 75 Total
Methods and Functions

What is the difference between a void method and a return method?

43 / 75 Total
Methods and Functions

How can you call a method in Java?

44 / 75 Total
Methods and Functions

What is method overloading in Java?

45 / 75 Total
Methods and Functions

Can methods in Java have the same name?

46 / 75 Total
Methods and Functions

What is a parameter in Java methods?

47 / 75 Total
Methods and Functions

What is the purpose of the 'main' method in Java?

48 / 75 Total
Methods and Functions

Explain the use of the 'return' keyword in a method.

49 / 75 Total
Java Programming - Arrays and Strings

What is an array in Java and how do you declare one?

50 / 75 Total
Java Programming - Arrays and Strings

How do you initialize an array with values in Java?

51 / 75 Total
Java Programming - Arrays and Strings

How can you find the length of an array in Java?

52 / 75 Total
Java Programming - Arrays and Strings

What is a String in Java?

53 / 75 Total
Java Programming - Arrays and Strings

How do you concatenate two strings in Java?

54 / 75 Total
Java Programming - Arrays and Strings

How do you convert an integer to a string in Java?

55 / 75 Total
Java Programming - Arrays and Strings

What is the difference between equals and == when comparing strings?

56 / 75 Total
Java Programming - Arrays and Strings

How do you check if an array contains a specific value in Java?

57 / 75 Total
Java Programming - Arrays and Strings

How do you sort an array in Java?

58 / 75 Total
Java Programming - Arrays and Strings

What are some common methods available for String manipulation in Java?

59 / 75 Total
Java Input and Output

How do you read input from the user in Java using the Scanner class?

60 / 75 Total
Java Input and Output

What is the purpose of the System.out.println() method in Java?

61 / 75 Total
Java Input and Output

How does Java handle input and output exceptions?

62 / 75 Total
Java Input and Output

What is the difference between print() and println() methods in Java?

63 / 75 Total
Java Input and Output

How do you format strings in Java for output?

64 / 75 Total
Java Input and Output

What is the role of BufferedReader in Java I/O?

65 / 75 Total
Java Input and Output

Explain how you would write output to a file in Java.

66 / 75 Total
Java Input and Output

What is System.in in Java?

67 / 75 Total
Java Input and Output

How can you convert a string input to an integer in Java?

68 / 75 Total
Java Input and Output

What are the key differences between console and file I/O operations in Java?

69 / 75 Total
Java Development Tools

What is the purpose of the Java Compiler?

70 / 75 Total
Java Development Tools

Explain the role of the Java Virtual Machine (JVM).

71 / 75 Total
Java Development Tools

What is JDK and why is it important?

72 / 75 Total
Java Development Tools

What is the function of the Java Runtime Environment (JRE)?

73 / 75 Total
Java Development Tools

How does an Integrated Development Environment (IDE) assist Java developers?

74 / 75 Total
Java Development Tools

What is the use of the 'javap' tool in Java?

75 / 75 Total
Java Development Tools

Describe the 'jar' tool and its utility in Java development.