Computer Science, asked by aashikatharu1436, 2 months ago

pls answer me i need your help ​

Attachments:

Answers

Answered by purveshKolhe
3

 \huge{ \blue{ \boxed{ \red{ \mathfrak{answer \:  : }}}}}

Full cøde :: ---

class demo {

public static void main(String args []) {

int a;

// Here, int a; is a variable declaration.

int b = 10;

// Here, int b = 10 is variable initialization.

System.out.println("My java program");

}

}

Logic::

==> A variable is said using its data type. This is called variable declaration in Java.

==> Assigning value to the declared variable using '=' sign is called variable initialization.

Output of your cøde::

My java program.

Reason::

==> The variables declared were not printed due to no use of println method in them.

Similar questions