Telegram Web Link
✍️✍️......🍃🍃🍃...... ✍️✍️
1. Basic functionality testing
Begin by making sure that every button on every screen works. You also need to ensure that you can enter simple text into each field without crashing the software.

2. Code review
If your coding methodology requires peer review or your team manager can do it, perform this step before you hand the code over for testing. Remember to do your basic functionality testing before the code review, though.

3. Static code analysis
There are tools that can perform analysis on source code or bytecode without executing it.like PMD,Black duck , sonar cube or anything available.

4. Unit testing
Developers will write unit tests to make sure that the unit (be it a method, class, or component) is working as expected and test across a range of valid and invalid inputs.

Developers also work with mock objects and virtualized services to make sure their units can be tested independently. If your unit tests fail, fix them before letting someone else use your code. If for any reason you can't fix them right now, let the other person know what has failed, so it won't come as a surprise when they come across the problem.

5. Single-user performance testing
Some teams have load and performance testing baked into their continuous integration process and run load tests as soon as code is checked in.
Join us👇👇👇👇👇👇👇👇👇👇👇
@Compu
✍️✍️......🍃🍃🍃......✍️✍️
Q:- Exception is a class/interface/abstract class/other?
Anonymous Quiz
18%
A. Class
33%
B. Interface
38%
C. Abstract class
11%
D. Other
✍️✍️......🍃🍃🍃......✍️✍️
Q:-Exception is found in which package in java
Anonymous Quiz
23%
A. java
31%
B. java.io
31%
C. java.util
14%
D. java.lang
✍️✍️......🍃🍃🍃......✍️✍️
Q: When does Exceptions in Java arises in code sequence?
Anonymous Quiz
31%
A. Run Time
37%
B. Compilation Time
27%
C. Can Occur Any Time
5%
D. None of the mentioned
✍️✍️......🍃🍃🍃......✍️✍️
Q:-The class at the top of exception class hierarchy is .................
Anonymous Quiz
26%
A. Object
31%
B. Throwable
31%
C. Exception
13%
D. ArithmeticException
✍️✍️......🍃🍃🍃......✍️✍️
Q:) Exception generated in try block is caught in ........... block.
Anonymous Quiz
16%
A. throw
32%
B. throws
44%
C. catch
8%
D. finally
✍️✍️.......🍃🍃🍃.......✍️✍️
Q:)At runtime, error is recoverable.
Anonymous Quiz
64%
A. True
36%
B. False
✍️✍️......🍃🍃🍃......✍️✍️
Q:) Which exception is thrown when divide by zero statement executes?
Anonymous Quiz
31%
A. ArithmeticException
36%
B. NullPointerException
27%
C. NumberFormatException
6%
D. None of these
✍️✍️......🍃🍃🍃......✍️✍️
Q:) Which exception is thrown when an array element is accessed beyond the array size?
Anonymous Quiz
25%
A. ArrayIndexOutOfBounds
34%
B. ArrayElementOutOfBounds
35%
C. ArrayIndexOutOfBoundsException
6%
D. None of these
✍️✍️......🍃🍃🍃......✍️✍️
Q:) In which condition will the finally block will not be executed?
Anonymous Quiz
17%
A. When some Error occurs
29%
B. When Exception is raised
34%
C. When System.Exit(1) is called
20%
D. In all the cases
✍️✍️......🍃🍃🍃......✍️✍️
Q:) Which of the following statements is correct?
1. The exception is unrecoverable 2. The error is recoverable by debugging.
Anonymous Quiz
12%
A. 1
35%
B. 2
42%
C. 1 and 2
11%
D. neither 1 nor 2
✍️✍️......🍃🍃🍃......✍️✍️
Java String indexOf()
There are four variants of indexOf() method. This article depicts about all of them, as follows:
1.int indexOf() : This method returns the index within this string of the first occurrence of the specified character or -1, if the character does not occur.
2. int indexOf(char ch, int strt ) : This method returns the index within this string of the first occurrence of the specified character, starting the search at the specified index or -1, if the character does not occur.
3.int indexOf(String str) : This method returns the index within this string of the first occurrence of the specified substring. If it does not occur as a substring, -1 is returned.
4. int indexOf(String str, int strt) : This method returns the index within this string of the first occurrence of the specified substringstarting at the specified index. If it does not occur, -1 is returned. 
 
Join us :-@Compu
✍️✍️......🍃🍃🍃......✍️✍️
Q: Which of these methods return description of an exception?
Anonymous Quiz
29%
A. getException()
32%
B. getMessage()
29%
C. obtainDescription()
9%
D. obtainException()
✍️✍️.....🍃🍃🍃......✍️✍️
Q: Which of these methods is used to print stack trace?
Anonymous Quiz
18%
A. getStackTrace()
37%
B. displayStackTrace()
19%
C. obtainStackTrace()
26%
D. printStackTrace()
✍️✍️......🍃🍃🍃......✍️✍️
Q: Which of these methods return localized description of an exception?
Anonymous Quiz
20%
A. getMessage()
45%
B. getLocalizedMessage()
26%
C. printLocalizedMessage()
9%
D. obtainLocalizedMessage()
✍️✍️......🍃🍃🍃......✍️✍️
In Java, the try-with-resources statement is a try statement that declares one or more resources. The resource is as an object that must be closed after finishing the program. The try-with-resources statement ensures that each resource is closed at the end of the statement execution.

Benefits of using try-with-resources:
More readable code and easy to write.
Automatic resource management.
Number of lines of code is reduced.
No need of finally block just to close the resources.
When multiple resources are opened in try-with-resources, it closes them in the reverse order to avoid any dependency issue.

Join us @Compu
✍️✍️......🍃🍃🍃......✍️✍️
Q) Which of the following option leads to the portability and security of Java?
Anonymous Quiz
26%
Bytecode is executed by JVM
45%
The applet makes the Java code secure and portable
20%
Use of exception handling
9%
Dynamic binding between objects
✍️✍️......🍃🍃🍃......✍️✍️
Q) _____ is used to find and fix bugs in the Java programs.
Anonymous Quiz
36%
JVM
33%
JDK
20%
JRE
12%
JDB
2025/07/04 17:03:51
Back to Top
HTML Embed Code: