Basics Flashcards

1
Q

Important scanner

A

Import java.util.Scanner;

Scanner inputData = new Scanner(System.in)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Syntax—>Math random
-50 to 50
0-10

A

(int) (Math.random() * 101-50)

(int) (Math.random() * 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

String to primitive

integer

A

String num1 = “22”;

int int1 = Integer.parseInt(num1);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

String to primitive

Wrapper class

A

String n1 = “22”;

Integer int1 = Integer.valueOf(n1);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

(++, –)

A

Increment and decrement operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

(+, -, *, /, %)

A

Arithmetic operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(, <=, >=, ==, !=)

A

Comparison (Relational) operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

(&&, ||, !)

A

Logical operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

( =, += , -=, *=, /=, %=)

A

Assignment operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Implicit casting

A

converting a smaller data type to a larger data type size. Performed
automatically by the compiler

byte number1 = 45;
int number2 = number1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explicit casting

A

converting a larger data type to a smaller data type size and performed manually
by users

double d1 = 100.0;
float f1 = (float)d1;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are if-else statements in Java and what are they are used for?

A
  • Java if-else statements are used to test specific conditions and they control the flow of the program based on the condition.
  • It will execute a block of code if given condition is true, and another code of block if condition is false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is break statement in Java?

A

break is used for termination in Java

It is used with switch statements and loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are wrapper classes in Java?

A
  • Wrapper classes are object representations of primitives
  • There is a wrapper class for each primitive type
  • Wrapper class names are usually same as with primitive data types
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Explain main() method in java?

A
  • It is one of the most important methods in java as it tells java where the programs start
  • We cannot run our programs without main method and all our programs should be in main() method
  • JVM always look for this method to start running an application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is java and javac

A
  • javac stands for java compiler and it is used to compile source code
  • java is used to run the compiled code by javac
17
Q
JIT
JVM
JRE
JDK
Architecture
A

JDK = development tools + JRE + JVM
JRE = all the java libraries + java classes + JVM
JVM = Java Virtual Machine and it holds JIT as well

18
Q

JIT

A

Just in Time Compiler and it stands inside the JVM.

19
Q

JVM

A

Java Virtual Machine and used to run the programs.

JVM itself is platform dependent

20
Q

JRE

A

Java Runtime Environment

It holds all the Java libraries and java classes. It has JVM inside

21
Q

JDK

A

Java Development Kit and is used to create Java programs

22
Q

What is Agile?

A

Agile is INCREMENTAL and ITERATIVE approach to manage the project.

23
Q

What is SCRUM?

A

• Scrum is an agile process that allows us to focus on delivering the highest business value in the shortest amount of time

24
Q

What is ‘User Story’?

A

A user story is an informal, general explanation of a software feature written from the perspective of the end-user or customer.

As a user…

25
Q

What is Sprint?

A

A sprint is a short, time-boxed period when a scrum team completes a set amount of work.

26
Q

What are the Scrum Ceremonies?

A
  1. Daily Scrum Meeting
  2. Sprint Planning Meeting
  3. Sprint Review Meeting
  4. Sprint Retrospective Meeting
27
Q

What is the Sprint Backlog Grooming Meeting

A
  • This meeting is performed in the middle of each sprint to refine the user stories for the next sprint
  • Product Owner, Scrum Master, and Development team attend this meeting
  • Prioritize user stories
  • Add details to the user stories
  • Estimate the time to deliver the user stories
28
Q

Agile

A

Incremental and iterative
approach to manage the project. It is
flexible and you can go back and forth
between phases.

29
Q

Waterfall

A

Linear and sequential
approach to manage the project. It is
strict you cannot go back to the
previous phase.

30
Q

Scrum

A

Scrum is an agile process that allows
us to focus on delivering the highest
business value in the shortest time

31
Q

QA

A

We are verifying the documentation

and validating the application.

32
Q

The Topics in the Retro Meeting

A

What went wrong?

What went well?

33
Q

What is an object

A

An object is used to store data.

An instance of a Class

34
Q

if(what goes here){

}

A

Statements

35
Q

What are the Scrum Values?

A
  • Commitment
  • Courage
  • Focus
  • Openness
  • Respect