You are on page 1of 3

Q1) Which Java feature names and subsequent names start with Upper case letters?

1. Classes 2. Abstract classes 3. Interfaces 4. Enums 5. All the above

Q2) Which Java feature names are start with lower case letters and the sub sequent names starts with upper
case letters?

1. Variables 2. Methods 3. Both 1 and 2 4 none of the above

Q3) Which Java feature names are in lower case letters?

1. Classes 2. Variables 3. Methods 4. Packages

Q4) Which Java feature names are provided in upper case letters?

1. Classes 2. Variables 3. Packages 4. Constants

Q5) Find the valid statements from the following list?

1. All java naming conventions are mandatory for predefined library.

2. All java naming conventions are optional for user defined library.

3. All java naming conventions are suggestible for user defined library.

4. All the above

Q6) Which environment variable is able to provide all java commands to Operating system in Command
prompt?

1. Path 2. Classpath 3. Temp 4. None of the above

Q7) Which environment variable is able to make available .class files to JVM?

1. Path 2. Classpath 3. Temp 4. None of the above

Q8) Find the valid statement from the following list?

1. Java programming language is platform independent


2. Java applications are platform independent
3. Java software is platform dependent
4. JVM is platform dependent
5. All the above

#Durga Software Solutions ,202, HMDA, Mytrivanam , Ameerpet, Hyderabad -500038


Contact : 8852 8852 96/97 /63/64 Mail ID: durgasoftoffline@gmail.com Page 1
Q9) If we set path environment variable to JDK1.6 version temporarily and JDK1.8 version permanently then
which java version will come when we type “javac -version” on command prompt?

1. JDK1.6 2. JDK1.7 3. JDK1.8 4. None

Q10) If we set path environment variable like below then which java version will come to the command prompt
when we type “javac -version”?

Set path=jdk1.6;jdk1.7;jadk1.8;

1. Jdk1.8 2. Jdk1.7 3. Jdk1.6 4. None

Q11) Find the invalid statements from the following list?

1. In general we will use Java Editors to writing java programs and to save java file.
2. In general we will not use Java Editors to compile programs and to execute program.
3. In general we will use IDEs for real time application development.
4. None of the above

Q12) What is the requirement to compile java files?

1. To translate program from source code to bytecode.


2. To check developers mistakes.
3. To execute java applications
4. Both 1 and 2

Q13) Generating no of .class files is on the basis of what factor?

1. No of classes which are existed in java file


2. No of abstract classes which are existed in java file
3. No of interfaces which are existed in java file
4. No of enums and inner classes which are existed in java files
5. All the above

Q14) In Java applications, compiler will start compilation from which point?

1. Starting point of main() method.


2. Starting point of java file.
3. Starting point of main class.
4. None of the above

#Durga Software Solutions ,202, HMDA, Mytrivanam , Ameerpet, Hyderabad -500038


Contact : 8852 8852 96/97 /63/64 Mail ID: durgasoftoffline@gmail.com Page 2
Q15) In Java applications, JVM will start application execution from which point?

1. Starting point of main() method.


2. Starting point of java file.
3. Starting point of main class.
4. None of the above

Q16) Which java command we have to use to compile java file and to send the generated .class files to a
particular target location?

1. Javac -p targetLocation FileName.java


2. Javac -x targetLocation FileName.java
3. Javac -d targetLocation FileName.java
4. None of the above

Q17) Which java command we have to use to compile all java files from current location?

1. Javac -all .java


2. Javac *.java
3. Javac *.*
4. None of the above

Q18) Which java command we have to use to compile all java files whose names are prefixed with Employee?

1. Javac Employee*.java
2. Javac *Employee.java
3. Javac Employee.java
4. None of the above

Q19)Which java command we have to use to compile all java files whose names are suffixed with Address?

1. Javac Address*.java
2. Javac *Address.java
3. Javac Address.java
4. None of the above

Q20)Which java command we have to use to compile all java files whose names contains Account?

1. Javac Account*.java
2. Javac *Account.java
3. Javac *Account*.java
4. None of the above

#Durga Software Solutions ,202, HMDA, Mytrivanam , Ameerpet, Hyderabad -500038


Contact : 8852 8852 96/97 /63/64 Mail ID: durgasoftoffline@gmail.com Page 3

You might also like