Questions
If the scale on a map is 1:10000, how long, in metres, will a 5cm road be in real life?
- 50000
- 50
- 500
- 5000
- 5
Is it valid?? int _samId=new Integer(12);
- True
- False
Wrapper class of boolean??
- boolean
- Boollean
- Bolean
- Boolean
Java 5.0 what this 5.0 stands for and in case of Java1.5 , 1.5 stands for??
- Java5.0 is product version no and Java1.5 is internal Version number
- Java1.5 is external version no and Java5.0 is internal Version number
- Java1.5 is product version no and Java5.0 is internal Version number
- Java1.5 is internal version no and Java5.0 is external Version number
output?? import java.util.; import java.text.; public class NowString { public static void main(String[] args) { Date now = new Date(); DateFormat df =DateFormat.getDateInstance(); String s = df.format(now); System.out.print("Today is " + s); Integer id=new Integer(12); System.out.print(id); } }
- Today is Aug 2, 201012
- Today is Aug 2, 2010
- Today is 12
- None
How many keywords does JAVA has??
- 50
- 49
- 48
- 51
where does the class methods stored in the Ram??
- Heap
- Kernal
- Stack
- Static Data Blocks
The class that lies at the Top of the Hierarchy???
- Metaclass
- Superclass
- Object
- None
Output when the object of NowS is created ??? import java.util.*; class Sam { private int no; Sam() {no=0;} Sam(int n) {no=n;} } class NowS extends Sam{ private int x; NowString() { x=12; Super.Sam(12); System.out.println(x); } }
- 12
- nothing
- compilation error
- 0
We don't have the concept of multiple inheritance in Java but we still requires it How does JAVA helps us in this situation?
- Import new package
- use concrete class
- Use of Interfaces
- Use Inheritance
Interface is 100% abstract ..
- True
- False
which of them are executed before contructor is called??
- static variable
- Abstract method
- Initializer Block
- Instance variables
Which of them are Not inheritable??
- constructor
- public instance variable
- protected members
- Primitive elements
Output?? boolean var = false; if(var = true) { System.out.println(“TRUE”); } else { System.out.println(“FALSE”); }
- Run-time Error
- True
- Compilation Error
- False
What is the fear of washing known as ?
- Ablutophobia
- Agateophobia
- Aeroacrophobia
- Ailurophobia
What is the fear of toads known as ?
- Belonephobia
- Bufonophobia
- Batophobia
- Bacteriophobia
Fear of school...?
- Scatophobia
- Scotophobia
- Siderodromophobia
- Scolionophobia
Fear of the color black...?
- Malaxophobia
- Medomalacuphobia
- Melanophobia
- Methyphobia
What do we call Fear of ghosts...?
- Potophobia
- Phasmophobia
- Pocrescophobia
- Alliumphobia
If you had only one match and entered a COLD and DARK room, where there was an oil heater, an oil lamp and a candle, which would you light first?
- oil heater
- oil lamp
- candle
- none of this