-
String Input Library
Write a Java program without using any library function in string
i/p: My name is Rama
o/p: Rama si eman yM
What class is the top of the AWT event hierarchy
The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy.
What modifiers may be used with an interface declaration
An interface may be declared as public or abstract.
How can a dead thread be restarted
A dead thread cannot be restarted.
____________ is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
What invokes a thread's run() method
After a thread is started, via its start() method or that of the Thread class, the JVMinvokes the thread's run() method when the thread is initially executed.
Compareto and equals method
Difference between CompareTo and equals method.
There are _____ types of Comments in Java
A) One B) Two C) ThreeD) Four Explanation: There are 3 types of comments namely Single-line, Multi-line and Documentation comment
How to check the status of a caps lock key..?
You can do it without using key event, by creating an artificial key event using java.awt.Robot class to generate a "simple caracter" key press (for instance KeyEvent.VK_A). Sample Source Code -- May not be accurate but the concept is as follows. import java.awt.*;import java.awt.event.*;public class Test { public static void main(String[] args) throws AWTException...
Print Only Numbers From Java Strings
I have a question in Java-string,
String s="adf5hgjyu1frdsff6vgyu7bnjh9asd3"; like
How to print only numbers in that stringWhat are the functions of the dot(.) operator? (Select multiple)
A) It enables you to access instance variables of any objects within a classB) It enables you to store values in instance variables of an objectC) It is used to call object methodsD) It is to create a new object
Ans