Swarali Sree has Published 75 Articles

How many public classes of the same name it can have in Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

2K+ Views

A Java file contains only one public class with a particular name. If you create another class with same name it will be a duplicate class. Still if you try to create such class then the compiler will generate a compile time error. Example public class Example { } ... Read More

What are checked exceptions in Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

737 Views

A checked exception is an exception that occurs at the time of compilation, these are also called as compile time exceptions. These exceptions cannot simply be ignored at the time of compilation; the programmer should take care of (handle) these exceptions. if you use FileReader class in your program to ... Read More

What is the difference between a Java method and a native method?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

357 Views

A native method is the one whose method implementation is done in other languages like c++ and Java. These programs are linked to Java using JNI or JNA interfaces. The difference between normal method and native method is That the native method declaration contains native keyword and, the implementation of ... Read More

What is the difference between System.out, System.in and System.err streams in Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

886 Views

All the programming languages provide support for standard I/O where the user's program can take input from a keyboard and then produce an output on the computer screen. Similarly, Java provides the following three standard streams:Standard Input: This is used to feed the data to user's program and usually a ... Read More

What is Runnable interface in Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

392 Views

If your class is intended to be executed as a thread, then you can achieve this by implementing a Runnable interface. This belongs to the java.lang package.

How to find the file using Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

94 Views

Following example shows the way to look for a particular file in a directory by creating a File filter. Following example displays all the files having file names beginning with 'b'.ExampleLive Demoimport java.io.*; public class Main {    public static void main(String[] args) {       File dir ... Read More

RFC returns exception while using SAP RFC_READ_TABLE to output data to software

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

264 Views

You can check if there are any short dumps in SAP system using T-Code: ST22. When there are short dumps, it leaves ABAP Processor in an invalid state. This results in a failed call with an unspecified error message.

How is GENTRAN used in Electronic data interchange EDI in SAP?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

306 Views

Let me give you a basic info about electronic data interchange, it is used to exchange data (usually structured) between firms.Speaking about GENTRAN, it is one of the available EDI tools which can help you parse data in most of the common formats available. If you want to change the ... Read More

Transaction Jobs with no access to SM36 in SAP system

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

170 Views

There are few modules which let you schedule jobs programmatically like ‘JOB_OPEN’ or ‘JOB_CLOSE’. You can use these modules to schedule the job and then run it.You can programmatically handle it irrespective of privilege issue.

What is concurrency in Java?

Swarali Sree

Swarali Sree

Updated on 30-Jul-2019 22:30:20

415 Views

The ability to run multiple programs or parts of programs (threads) in parallel is known as concurrency.A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources especially when your ... Read More

Advertisements