Tuesday, 31 October 2017

java theory problems



Question 15:   
      What does JDK and IDE stand for?
  JDK stand for java development kit.
IDE  stand for integrated development environment
               

 Question 16:      Is Java case sensitive? What is the case for Java keywords?

Ans Yes java is case sensitive language it means it can differentiate b/w upper and lower case.
Java keywords written in lower case.

Question 17:
                 What is a comment? Is the comment ignored by the compiler? How do you denote a comment line and a comment paragraph?

Ans: Comments are written to understand the program.
   Yes comments are ignored by compiler when the program is executed.
For line // This statement take input from the user
For paragraph    /* This statement take input
                     From the user*/


 Question 18:
                  What is the statement to display a string on the console?      
Ans:
          System.out.println(“ALLAH IS ONE”);
      
  This print on console        ALLAH IS ONE

Question 19:
              What is next line and end of line style.
Next line style.
        public class Test
{
public static void main(String[] args)
{
System.out.println("Block Styles");
}
}
End line styel.
public class Test {
public static void main(String[] args) {
System.out.println("Block Styles");    }}

No comments:

Post a Comment