×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Raja
has Published
806
Answers
How can we get the name of the Enum constant in Java?
Java
Object Oriented Programming
Programming
raja
Published on 04-Sep-2019 11:47:35
An Enum is a special datatype which is added in Java 1.5 version and it can be used to define a collection of constants, when we need a predefined list of values that do not represent some kind of numeric or textual data, we can use an Enum. The enums are constants ...
Read More
Which collection classes are thread-safe in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 18:24:15
A thread-safe class is a class that guarantees the internal state of the class as well as returned values from methods, are correct while invoked concurrently from multiple threads. The collection classes that are thread-safe in Java are Stack, Vector, Properties, Hashtable, etc.StackThe Stack class in Java implements the stack data ...
Read More
When can a .class file get created in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 17:18:18
A Java class file has a ".class" extension and contains the Java bytecode. This class file can be executed by the Java Virtual Machine (JVM). A ".class" file is created as a result of successful compilation by the Java compiler from the ".java" file. Each class in the .java file ...
Read More
How can we check an underflow occurs in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 16:28:30
When a value is assigned to a variable that is less than the minimum allowed value for that variable, then an underflow occurs. There is no exception thrown by the JVM if an underflow occurs in Java and it is the responsibility of a programmer to handle the underflow conditions.Examplepublic class ...
Read More
How can we filter a JTable in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 03-Sep-2019 15:12:51
A JTable provides a very flexible possibility to create and display tables. The TableModel interface defines methods for objects that specify the contents of a table. The AbstractTableModel class is typically extended to provide a custom implementation of a model table. A JTable class provides the ability to edit tables using the method ...
Read More
Can a "this" keyword be used to refer to static members in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 12:49:40
No, the "this" keyword cannot be used to refer to the static members of a class. This is because the “this” keyword points to the current object of the class and the static member does not need any object to be called. The static member of a class can be accessed ...
Read More
How to compare two dates in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 11:58:18
In Java, two dates can be compared using the compareTo() method of Comparable interface. This method returns '0' if both the dates are equal, it returns a value "greater than 0" if date1 is after date2 and it returns a value "less than 0" if date1 is before date2.Syntaxint compareTo(T o)Exampleimport java.text.*; ...
Read More
How do threads communicate with each other in Java?
Java
Object Oriented Programming
Programming
raja
Published on 03-Sep-2019 11:09:05
Inter-thread communication involves the communication of threads with each other. The three methods that are used to implement inter-thread communication in Javawait()This method causes the current thread to release the lock. This is done until a specific amount of time has passed or another thread calls the notify() or notifyAll() method for ...
Read More
How does a ClassLoader work in Java?
Java
Object Oriented Programming
Programming
raja
Published on 30-Aug-2019 17:24:54
A Java Class is stored in the form of byte code in a .class file after it is compiled. The ClassLoader loads the class of the Java program into memory when it is required. The ClassLoader is hierarchical and so if there is a request to load a class, it is ...
Read More
Importance of the getCause() method in Java?
Java
Object Oriented Programming
Programming
raja
Published on 30-Aug-2019 16:58:04
The getCause() method is from Throwable class and we can use this method which returns the cause of the exception or returns null if the cause of the exception is not known. The getCause() method doesn’t accept any arguments and doesn’t throw an exception. It returns the cause that was provided by one of ...
Read More
Previous
1
...
47
48
49
50
51
52
53
...
81
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout