![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Latest Answer : String are made immutable because 1. better memory management.Generally thousands of string literals objects are created in any of the application.To avoid the individual memory allocation to all the string objects ,JVM creates the string literal objects ... Read Answers (6) | Asked by : Ram kishor Meena Latest Answer : ) Abstract class defines few or none of the methods, but interface defines all the methods..2) Abstract classes should have subclasses else that will be useless..Interfaces must have implementations by other classes else that will be useless3)only an ... Tags : Abstract Latest Answer : Class loaders are one of the cornerstones of the Java virtual machine (JVM) architecture. They enable the JVM to load classes without knowing anything about the underlying file system semantics, and they allow applications to dynamically load Java classes ... Latest Answer : According to the Java Specification, the four methods related to threading is defined in the Object class rather than the Thread Class, because of the Java Concurrency and Synchronised construct. As we start the JDK, there are different therad runs ... Servlet is Java class. Then why there is no constructor in Servlet? Can we write the constructor in Servlet Read Answers (11) | Asked by : Suresh Latest Answer : it is used to load the class at runtime and in jdbc it is used to load the driver and according to specification every driver class must contain a static block in which it contains the code to instanciate itself and the register itself with the driver ... What will happen when u attempt to compile and run the below code. int a = (int) Math.random(); a.0 b.1 c. compilation fails d. 0 to Ineteger.MAX_VALUE 3. which two are used to declare the boolean primitive a. boolean b =0;b. boolean b = Boolean.TRUE;c. boolean b = true;d. boolean b = (3>=0); 4. what is the O/P? class A{ Void get(){ Sysout(“A”);}} Class B extends A{ Void get(){ Why the clone method in object is defined as protected one.Since every class is a subclass of object Why the clone method in object is defined as protected one.Since every class is a subclass of object what is the significance of the protected access modifier View Question | Asked by : Raj vardhan Reddy Latest Answer : Ofcourse why not, you can use Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") inside non static function. But I will suggest you should use this inside static block. The reason is we put this in the static block is that we only have to load ... Read Answers (1) | Asked by : umesh
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||