You are on page 1of 2

SOME IMPORTANT ONE WORD QUESTIONS

1. Full form:-
IDE – integrated development environment
API – application program interface
JRE – java runtime environment
JVM – java virtual machine
JDK – java development kit
WORA -- write once run anywhere

2. Define the term: - byte code, source code, interpreter, compiler, token, keyword, identifier, literals, operator (unary,
binary, ternary), break, continue, return, exit control and entry control loop, symbolic constant, conditional operator.
3. What is the need of jvm? – Jvm compiles the java program and converts it to byte code. This byte code can be
translated to machine specific code.

4. What are the different types of java programs? –


(i) Stand-alone applications – programs that are written and compiled on the same machine.
(ii) Applets – programs executed on the web browser
(iii)Servlets – server side programs

5. What is the name given to character set of java? – Unicode


6. How many keywords of java are known till today? – 50
7. What are the Boolean literals? – Boolean literals are true and false.
8. What are character literals? – Single character enclosed in single quote is called character literals.
9. What are string literals? – Set of character enclosed in double quotes is called a string literal.
10. What do you mean by data type of a variable? – Data type refers to the type of value to be stored in a variable.
11. What are the different primitive data types? – (byte short int long float double char boolean)
12. What is the different reference data type of java? – (class, array, and interface) (user define, composite, derived, non-
primitive)
13. What are the different types of integer literals? – Octal, decimal and hexadecimal.
14. All size of data type –
15. What do you mean by platform independency?
16. What is the most important feature of java? – Platform independent language.
17. What is the base class of all classes? – Lang class
18. Difference between local and instance variable?
19. Why is the main ( ) method declared static? – Main ( ) is called by the jvm even before object creation of the class
hence it is declared as static.
20. Can a main ( ) method is overloaded? – Yes
21. Can a main ( ) method be declared final? – Yes
22. Does the order of public and static declaration matter in main ( ) method? – No
23. What is package?
24. Which package is imported by default?
25. Explain term type casting?
26. How many bits are reserved for char data type? – It reserved 16 bits.
27. How many values can a variable store at a time? – Only one.
28. What are escape sequences? – Some characters, if preceded by a backslash (\), change their meaning and perform a
specific function.
\n – new line \t – horizontal tab \v -- vertical tab

SOME IMPORTANT ONE WORD QUESTIONS BY SHASHANK PORWAL|KKITM, ORAI 8707704388


29. How many bits are reserved for Boolean type? – 8 bit is reserved but used only 1 bit.
30. What Boolean value does a bit 1 and 0 represent respectively? – 1-true, 0-false
31. Name the class modifier that makes the class visible to other classes of same packages? – Public
32. What is the difference between pre and post (increment and decrement) operator? – (++a, a++, a--,--a)
33, difference between ASCII CODE and UNICODE? – ASCII code (7 bit code), Unicode (16 bit code)
34. Write arithmetic binary operators? – (+,-,*,/,%)
35. What are two ways invoking functions? –call by value and call by reference
36. What is the role of keyword void in declaring functions? – Void declares that the function does not return any value.
37. Difference between actual and formal parameter?
38. How many values can a function return? – Only one value.
39. What do you mean by access specifier?
40. When do we declare a member method ‘static’? – When a method needs to be called without object.
41. Why main method defined as a static method in a java class?
42. What is the other term given to access specifier? – Visibility controller.
43. Can a non-static method be accessed in a static method without the use of the object? – no
44. What is method overloading? Another name polymorphism
45. What do you mean by iteration/looping? – Iteration means repetition of statements
46. What is a block or compound block? {Statements enclosed in curly braces}
47. Can a class be declared as protected? – No (this modifier cannot be applied to class or interface.
48. What is bitwise operator? All operators with its name and function
49. What is precedence and associativity of operator?
50. Who is the inventor of java and some history? – James gosling and team (1991 sun microsystem oak and 1995 its
renamed java)
51 what is your book name author and publication? -- (this is the most important question  )
52. How to be creating an object of any class? – class name obj name = new class name ( );
53. white space is also called a space and blank spaces so don’t be confused it.
54. All data types range.
55. What is the scope and lifetime of a variable?
56. What is short hand operator? – (Also known as arithmetic assignment operator)
57. All types of error available in java.
58. All types of loop (entry, exit, backward, forward, finite, infinite, empty and null loop)
59. Unicode can represent 65536 characters and symbol, ASCII can represent only 128 characters.
60. Ascii code – (A-Z – 65-90, a-z – 97-122, 0-9 – 48-57)
61. Default clauses is optional in switch and continue is used in switch statement.
62. What is function prototype and function signature?
63. Pre and post has same manner in for loop.
64. What do you mean by function signature? – The number and type of parameters or arguments given with function
prototype and definition is known as function signature.
65. What do you mean by nesting of function? – Calling / invoking function through another function of the same class is
known as nesting of function.

SOME IMPORTANT ONE WORD QUESTIONS BY SHASHANK PORWAL|KKITM, ORAI 8707704388

You might also like