Accenture solved Placement Papers - java questions - part 2
Here are some solved questions from Accenture Placement Papers
1) What are identifiers and what is naming convention?
Ans : Identifiers are used for class names, method names and variable names. An identifier may be any descriptive sequence of upper case & lower case letters,numbers or underscore or dollar sign and must not begin with numbers.
2) What is the return type of program’s main( ) method?
Ans : void
3) What is the use of bin and lib in JDK?
Ans : Bin contains all tools such as javac, applet viewer, awt tool etc., whereas Lib contains all packages and variables.
4) The Java source code can be created in a Notepad editor.
a) True
b) False
Ans: True



