-
Java - How to convert string to charArray ?
String str="Welcome To GeekInterview.com"
How can convert the above string to charArray without using any buit-in function in java?
Anyone to know the answer.please help me? i am new to learn java. -
Without main Method
How can we use method without using main method in JAVA?
-
What is the difference between preemptive scheduling and time slicing
Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined slice of time and then reenters the pool of ready tasks. Thescheduler then determines which task should execute next, based on priority andother factors.
-
What is the purpose of the finally clause of a try-catch-finally statement
The finally clause is used to provide the capability to execute code no matter whether ornot an exception is thrown or caught.
-
What must a class do to implement an interface
It must provide all of the methods in the interface and identify the interface in itsimplements clause.
-
What happens if a try-catch-finally statement does not have a catch clause to handlean exception that is thrown within the body of the try statement
The exception propagates up to the next higher level try-catch statement (if any) orresults in the program's termination.
-
-
-
-
-
-
-
-
-
-
-
-
Why is transient modifier used and where in real life?
Many people disturbed me about the solution,some one help me.
-
-
Java Interview Questions
Ans