50 Java Language Computer Knowledge
Interview Asking for
Short Answer Questions :-
- Who is invented by java programming ? James Gosling
- Java is a independent or dependent programming language ? Independent
- Use of pointers is a java feature ? Yes or no ? No
- Java is case sensitive ? True
- Java was publicly released in ___? 27-05-1995
- Java is Secure ? Yes or no ? Yes
- In java ,System class is defined in ___? java.lang package
- In java , Scanner class defined in ___? java.util package
- In java, Scanner class is used to take input at ? Run-time
- Which Steam is used for input ? System.in
- Which Stream is used for output ? System.out
- What is the extension of java code files? .java
- What us the extension of compiled java classes ? .class
- Keyword is used for a variable name in java ? Yes or no ? No
- Which of the following is a type of polymorphism in java programming programming ? Compile time polymorphism
- Which of the following package is used for text formatting in java programming language ? java.text
- Which component is used to compile , debug and execute the java programs ? JDK
- Which Scanner class method is used to read integer value ? nextInt()
- Which Scanner class method is used to reqd String value ? next() and nextLine()
- How many types if Data type in java ? 2
- How many primitive Data type in java ? 8
- What is the size of char Data type ? 2 bytes
- What is the default value of boolean Data type ? False
- Which of the following is smallest integer Data type ? Byte
- Which of the following Data types comes under floating Data types ?double & float
- What is the range of byte data type is ? -128 to +127
- How many loops are their in java ? Three
- What is the purpose for using loop ? For repeatation
- Which loop always execute atleast once, even condition false ? do while loop
- Do while loop is also as ___loop ? Exit control
- Which of the following loops are entry controlled loop ? While and for loop
- Which loop is best suitable for Arrays in java ? For - each loop
- Assignment operator is not a part of binary operator ? Yes
- which operator is used for alternate of if-else statement ? Ternary operator
- Which of the following is arthmetic operators are ? +,-,*,%,/,
- Relational operator is used for ? Comparison
- How many types of logical operators ? 3
- Which of the following is bitwise operator ? &
- What is the default value of static variable ? 0
- A variable which is Declared inside the method called ____? Local variable
- Which of these selection statements test only for Equality ? a)if b)switch c)if & switch d)None of these answer is switch
- If statement execute or skip statement depending on the _____expression ? Boolean
- Which one is a valid declaration of boolean datatype ? book b=false;
- What is the default data type of a decimal value in java ? double
- In java , Scanner is pre- defined ? Class
- What is tbe reason of portability & security of java ? byte code
- What does the expression double n=1/0; return ? Infinity
- Which of these class is a superclass of every class in java ? object class
- Void is not to Access modifier ? Yes or no ? yes
- Which of these are conditional statements in java ? if()
For more posts
0 Comments