Articles on Trending Technologies

Technical articles with clear explanations and examples

How to load classes at runtime from a folder or Java package

Abhinaya
Abhinaya
Updated on 04-Feb-2020 1K+ Views

Using CLASSPATH, you can load any classes at runtime.Like the .java source files, the compiled .class files should be in a series of directories that reflect the package name. However, the path to the .class files does not have to be the same as the path to the .java source files. You can arrange your source and class directories separately, as −\sources\com\apple\computers\Dell.java \classes\com\apple\computers\Dell.classBy doing this, it is possible to give access to the classes directory to other programmers without revealing your sources. You also need to manage source and class files in this manner so that the compiler and the ...

Read More

Java constructor return a value but, what?

Priya Pallavi
Priya Pallavi
Updated on 04-Feb-2020 1K+ Views

No. Java constructor cannot return a value. If required, just create a method which calls the required constructor and returns the required value. See the example below.public class Tester { public Tester(){} public static Tester getInstance(){ Tester tester = new Tester(); return tester; } }

Read More

How to compile packages in Java

Nikitha N
Nikitha N
Updated on 04-Feb-2020 6K+ Views

Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces.Following package example contains interface named animals −/* File name : Animal.java */ package animals; interface Animal {    public void eat();    public void travel(); }Now, let us implement the above interface in the same package animals −package animals; /* File name : MammalInt.java */ public class MammalInt implements Animal {    public void eat() {       System.out.println("Mammal eats");    } ...

Read More

Frame Structure for OFDMA with Time Division Duplexing

Moumita
Moumita
Updated on 04-Feb-2020 921 Views

Orthogonal frequency division multiple access (OFDMA) is a multi-user version of digital data modulation scheme OFDM (orthogonal frequency division multiplexing). In OFDM, a single stream of data is divided into several separate sub-streams for transmission via multiple channels. OFDM uses the principle of frequency division multiplexing (FDM), where the available bandwidth is divided into a set of sub-streams having separate frequency bands.In OFDMA, multiple access is achieved by assignment of different subsets of subcarriers to individual stations. This permits transmission to go on simultaneously at lower data rate from several stations.The stations assigned to a given subcarrier alternate between sending ...

Read More

The 802.16 Physical Layer

Moumita
Moumita
Updated on 04-Feb-2020 2K+ Views

The IEEE 802.16 is a set of standards that lays down the specifications for wireless broadband technology. It has been commercialized as Worldwide Interoperability for Microwave Access (WiMAX) that is responsible for delivery of last mile wireless broadband access. It lays down the standards for both physical layer as well as medium access control (MAC) layer for WiMAX.Physical Layer Features of WiMAXThere are two popular services of the physical layer −Fixed WiMAX.Mobile WiMAX.WiMAX initially provided data rates of 30 – 40 Mbps. The updated version that came in 2011 provides up to 1 Gbps data rates for fixed stations.It operates ...

Read More

The 802.16 Architecture and Protocol Stack

Moumita
Moumita
Updated on 04-Feb-2020 5K+ Views

The 802.16 is a set of standards defined by IEEE (Institute of Electrical and Electronics Engineers) that lays down the specifications for wireless broadband technology. It has been commercialized as Worldwide Interoperability for Microwave Access (WiMAX) that is responsible for delivery of last mile wireless broadband access.The IEEE 802.16 lays down the standards for both physical layer as well as medium access control (MAC) layer for WiMAX. It initially provided data rates of 30 – 40 Mbps. The updated version that came in 2011 provides up to 1 Gbps data rates for fixed stations. It operates in the frequency band ...

Read More

Practice questions on Arrays in C++

sudhir sharma
sudhir sharma
Updated on 04-Feb-2020 1K+ Views

Array is a data structure that store data in the contagious memory location.Declaring arraysDeclaring arrays is done by the following syntax : int 1D[] - for 1-D array int 2D[][] - for 2-D arrayIf you initialize an array with lesser number of elements, rest are initialized with 0.Memory address of elements of the array1-D array : address[i] = baseAddress + i*size 2-D array (row major) : address[i][j] = baseAddress + (i*n + j) * sizeNow, let’s see some practice problemPredict the output of the following code snippetint arr[5] = {6, 9}; for(int i = 0; i

Read More

Practice questions on Strings in C++

sudhir sharma
sudhir sharma
Updated on 04-Feb-2020 824 Views

String is an important part of programming. Strings are the array of character types. In competitive exams like GATE also it is an important topic. So let’s discuss some key points about string and then we will proceed to some questions that will help you clear your concepts about string.String in a programming language can be stored in two different ways. They are using character array (char str[size]) and using a pointer that will point to the string (char * ch = “Hello”). There are some important things related to the use of the character array and pointer to a ...

Read More

Practice Set for Recurrence Relations

sudhir sharma
sudhir sharma
Updated on 04-Feb-2020 642 Views

Recurrence relations are equations that recursively defines a multidimensional array.Here we will solve so questions based on recurrence relations.Solve the recurrence reation:T(n) = 12T(n/2) + 9n2 + 2. T(n) = 12T(n/2) + 9n2 + 2. Here, a = 12 and b = 2 and f(n) = 9(n)2 + 2 It is of the form f(n) = O(n^c), where c = 2This form its in the master’s theorem condition, So, logb(a) = log2(12) = 3.58 Using case 1 of the masters theorm, T(n) = θ(n3.58).Solve the recurrence reation:T(n) = 5T(n/2 + 23) + 5n2 + 7n - 5/3. T(n) = 5T(n/2 ...

Read More

What is the use of escape character () in text file while importing the data from text file to MySQL table?

Prabhas
Prabhas
Updated on 04-Feb-2020 526 Views

Use of escape character (\) would become very essential when we want to insert a comma or any other character between the values of a filed. It can be understood with the help of an example. Suppose we want to import the data from a text file named A.txt, having the following data, into a MySQL table −id,   Name,    Country,       Salary 105,  Chum,    Marsh, USA,     11000 106,  Danny,   Harrison, AUS,  12000Here, we can see that the filed name has two values first name, last name separated by a comma. Now, the ...

Read More
Showing 55181–55190 of 61,299 articles
Advertisements