1.What will be the output?boolean a = false if (a=true){ System.out.ptinln("Hello");}else{ System.out.ptinln("GoodBye");}2. Hashmap , hashset , ArrayList(true, true, false)3.Which need
Latest Answer: answer is true ...
Latest Answer: File f = new File(""); f.length(); ...
Latest Answer: Singleton class has only one instance, and to provide a global point of access to it.ex class Singleton { public: static Singleton* Instance(); protected: Singleton(); ...
Latest Answer: Static key word when applied to method or variable this means that the belong to class not any object, you can call them directly. ...
1. what are the different types of design patterns in core java ?2. what do we mean by value object design pattern ?
Which of the following JSP expressions are valid ? (a) <%= "Sorry"+"for the"+"break" %> (b) <%= "Sorry"+"for the"+"break"; %> (c) <%= "Sorry" %> (d) <%= "Sorry"; %>
What is the output of following block of program ? boolean var = false; if(var = true) { System.out.println("TRUE"); } else { System.out.println("FALSE"); }(a) TRUE (b) FALSE (c) Compilation Error (d) Run-time Error
(a) EXPLANATION: The code compiles and runs fine and the 'if' test succeeds because 'var' is set to 'true' (rather than tested for 'true') in the 'if'
A JSP page is opened in a particular Session. A button is present in that JSP page onclick of which a new Window gets opened. (a) The Session is not valid in the new Window (b) The Session is valid in the new Window
Latest Answer: I think newInstance() see the below linkhttp://www.unix.org.ua/orelly/java-ent/ebeans/ch07_02.htm ...
View page [1] 2 3 Next >>

Go Top