Skip to main content

Posts

Five Java Programs asked in interview from Freshers

1. Write a program (WAP) to reverse a number or string. Source code: import java.util.Scanner; public class  ReString { public static void main(String[] args)  { Scanner sc = new Scanner(System.in); System.out.println("Enter a String:"); String str = sc.nextLine(); String ReStr=""; for(int i=str.length()-1;i>=0;i--) { ReStr = ReStr+str.charAt(i); } System.out.println("Reverse of String "+ str + " is " +ReStr); } } For Beginners To run: Firstly Save it with any name or  by Class name For example: ReString.java To Go to the Local disk or drive where you saved the programs(Open Command prompt) For example for E drive: e:  Then press: enter Now press cd folder name Finally For Compilation : javac filename.java (as shown in image ''javac ReString.java'') To execute : java classname (as shown in image 'java ReString'') Output: ...

Command shortcuts you may need. Try it.

Unknown Keyboard Shorcuts : YouTube

Today, here I am going to discuss about some amazing and unknown keyboard shortcuts for YouTube. These shortcuts help you to use YouTube as more reliable, fast and give you new experience.                     Function                                                        Keyboard Shortcut(Press) 1. Pause/Play in Player                                                      k 2. Seek  forward  10 second                                                 l 3. Seek  backward   10 second      ...

10 most popular Programming Languages of 2018

1. JavaScript: JavaScript is a most popular programming language as described by StackOverFlow's Survey.It is not related to java but name is similar to that. It allows to build interactive websites and web apps along with HTML and CSS. It is one of World's most famous language. JavaScript is simple and easy to learn. Use: It is a client side language which is widely used in web app/mobile, desktop app development and in game development. 2. Python: Python is another programmer's choice popular language. Last 15 years its popularity is continually in increasing. It is an object oriented programming language developed by Guido von Rossum in 1989 and firstly released in 1991. It is easy to learn and it is highly productive. Use: It is used in development and progress of Gaming,  AI, machine learning, Big Data and robotics. 3. Java: The cause of its popularity is its portability ,simplicity, platform independent and high performance features. It is develop...

Keyboard Shortcuts of Google Crome

Google Crome working shortcuts for fast use and typing. Here are following Keyboard shortcuts for fast and comfortable use of Google Crome. These shortcuts are time saving:-                 Use For                                                         Keyboard Shortcut To open console of crome                                       : F12 To open Dowloads                                                   : Ctrl+j To open new tabs and jump it                                : Ctrl+T Set focus on t...

OOP Concepts

Data Abstraction: It is the process in which background or unimportant details hided and only necessary details are represented. It is one of the important OOP concepts that widely used. Encapsulation: This is another important OOP Concept. The process of wrapping up or binding the data and methods (functions) into a single unit is often called Encapsulation. This is the OOP Concept that help to provide security features in object oriented programming. As encapsulation helps to break the connection of the contents from outside world that protect the content from reauthorized access of data.   Inheritance: Inheritance means acquiring properties from ancestor. Similarly, "Inheritance is method in which object of one class acquire the features of object of another class". It means that one can use the same class to update properties of that class by inheritance. Its biggest benefit is that the re-usability of codes. Polymorphism: This OOP Concept ...

What is Java? Name the main concepts of Object Oriented Language.

Java  Java is revolutionary language.  Java can be defined as high level object oriented programming language which is created by James Arthur Gosling. Its most important feature is platform Independent. Java follows following features of Object Oriented Programming Language- 1. Data Abstraction 2. Inheritance 3. Polymorphism 4. Encapsulation