<< < 121 122 123 124 125 126 127 128 129 130 131 > >>   Sort: Date

What is a static method?
What is a static method? A static method is a method that belongs to the class rather than any object of the class and doesn't apply to an object or even require that any objects of the class have been instantiated.
2012-07-11, 2643👍, 0💬

Name Component subclasses that support painting?
Name Component subclasses that support painting? The Canvas, Frame, Panel, and Applet classes support painting.
2012-06-26, 2642👍, 0💬

What is the difference between yielding and sleeping?
What is the difference between yielding and sleeping? When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
2012-06-15, 2642👍, 0💬

Can a lock be acquired on a class?
Can a lock be acquired on a class? Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
2012-09-17, 2638👍, 0💬

Can we implement an interface in a JSP?
Can we implement an interface in a JSP? No
2013-08-10, 2637👍, 0💬

What is the package?
What is the package? The package is a Java namespace or part of Java libraries. The Java API is grouped into libraries of related classes and interfaces; these libraries are known as packages.
2013-02-21, 2635👍, 0💬

What is the advantage of the event-delegation model over the earlier event-inheritance model?
What is the advantage of the event-delegation model over the earlier event-inheritance model? The event-delegation model has two advantages over the event-inheritance model. First, it enables event handling to be handled by objects other than the ones that generate the events (or their containers). ...
2012-10-30, 2635👍, 0💬

Is Java a super set of JavaScript?
Is Java a super set of JavaScript? No. They are completely different. Some syntax may be similar.
2012-08-13, 2635👍, 0💬

Can we use the constructor, instead of init(), to initialize servlet?
Can we use the constructor, instead of init(), to initialize servlet? Yes , of course you can use the constructor instead of init(). There’s nothing to stop you. But you shouldn’t. The original reason for init() was that ancient versions of Java couldn’t dynamically invoke constructors wit...
2013-07-10, 2633👍, 0💬

What is the purpose of the Runtime class?
What is the purpose of the Runtime class? The purpose of the Runtime class is to provide access to the Java runtime system.
2012-07-07, 2633👍, 0💬

When a thread is created and started, what is its initial state?
When a thread is created and started, what is its initial state? A thread is in the ready state after it has been created and started.
2013-06-07, 2632👍, 0💬

When is the ArithmeticException throwQuestion: What is the GregorianCalendar class?
When is the ArithmeticException throwQuestion: What is the GregorianCalendar class? The GregorianCalendar provides support for traditional Western calendars.
2012-07-04, 2632👍, 0💬

What is a protected method?
What is a protected method? A protected method is a method that can be accessed by any method in its package and inherited by any subclass of its class.
2012-07-11, 2631👍, 0💬

Convert Windows login to SQL login
how will you convert windows authentication mode to sql server mode?
2014-09-15, 2630👍, 0💬

What happens if you dont initialize an instance variable of any of the primitive types in Java?
What happens if you dont initialize an instance variable of any of the primitive types in Java? Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0, a boolean will be initialized to false.
2013-06-27, 2629👍, 0💬

Can a JSP page process HTML FORM data?
Can a JSP page process HTML FORM data? Yes. However, unlike servlets, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the request implicit object within a scriptlet or expression a...
2013-07-30, 2628👍, 0💬

ArithmeticException?
ArithmeticException? The ArithmeticException is thrown when integer is divided by zero or taking the remainder of a number by zero. It is never thrown in floating-point operations.
2012-09-12, 2628👍, 0💬

What is a Java package and how is it used?
What is a Java package and how is it used? A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control ac...
2012-08-08, 2628👍, 0💬

What is the difference between VB and VB.NET?
What is the difference between VB and VB.NET? Now VB.NET is object-oriented language. The following are some of the differences: Data Type Changes The .NET platform provides Common Type System to all the supported languages. This means that all the languages must support the same data types as enfor...
2013-10-07, 2624👍, 0💬

How can a GUI component handle its own events?
How can a GUI component handle its own events? A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.
2012-07-24, 2624👍, 0💬

State True or False: A single .NET dll can contain unlimited classes: * True or * False?
State True or False: A single .NET dll can contain unlimited classes: * True or * False? True
2014-03-12, 2623👍, 0💬

What method is used to specify a container's layout?
What method is used to specify a container's layout? The setLayout() method is used to specify a container's layout.
2012-09-19, 2622👍, 0💬

What are the drawbacks of inheritance?
What are the drawbacks of inheritance? Since inheritance inherits everything from the super class and interface, it may make the subclass too clustering and sometimes error-prone when dynamic overriding or dynamic overloading in some situation. In addition, the inheritance may make peers hardly unde...
2012-08-29, 2618👍, 0💬

Which of the following is the correct code for setting a Session timeout of 30 minutes
Which of the following is the correct code for setting a Session timeout of 30 minutes Which of the following is the correct code for setting a Session timeout of 30 minutes * Session.Timeout = 108000 * Session.Timeout = 1800 * Session.Timeout = 300 * Session.Timeout = 30 Answer1: Session.Timeout = ...
2014-06-16, 2617👍, 0💬

<< < 121 122 123 124 125 126 127 128 129 130 131 > >>   Sort: Date