true

Find the best tutors and institutes for Java Training

Find Best Java Training Classes

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

Java Training Updates

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Lesson Posted on 30/12/2020 IT Courses/Java IT Courses/Java/Core Java Tuition/BCA Tuition/Java Programming +2 IT Courses/Java/JSP (Java Server Pages) Tuition/BA Tuition/Programming in JAVA less

Java : Compile-time Versus Runtime optimization

Surinder Pal Singh

I have 10 years of experience, working with Top IT companies. During my work it have extensively used...

While designing and development, one should think in terms of compile-time and run-time.It helps in understanding language basics in a better way.Let's understand this with a question below : What is the difference between line 1 & line 2 in the following code snippet? public class CompileAndRuntimeTest{... read more

While designing and development, one should think in terms of compile-time and run-time.It helps in understanding language basics in a better way.Let's understand this with a question below :

 

What is the difference between line 1 & line 2 in the following code snippet?

 

public class CompileAndRuntimeTest{
     static final int number1 = 5;
     static final int number2 = 6;
     static int number3 = 5;
     static int number4= 6;

public static void main(String[ ] args) {
    int product1 = number1 * number2; //line 1
    int product2 = number3 * number4; //line 2
}
}

Line 1, evaluates the product at compile-time, and Line 2 evaluates the product at runtime. If you use a Java Decompiler (e.g. jd-gui), and decompile the compiled CompileAndRuntimeTest.class file, you will see why , as shown below:

 

public class CompileAndRuntimeTest
{
   static final int number1 = 5;
   static final int number2 = 6;
   static int number3 = 5;
   static int number4 = 6;

public static void main(String[ ] args)
{
   int product1 = 30;//line 1 ---Here is the diff. Decompiled code 
   int product2 = number3 * number4; //line 2
}
}

Constant folding is an optimization technique used by the Java compiler. Since final variables cannot change, they can be optimized. Java Decompiler and javap command are handy tool for inspecting the compiled (i.e. byte code ) code.

 

Question for readers  :)  :

Can you think of scenarios other than code optimization, where inspecting a compiled code is useful?

 

read less
Comments
Dislike Bookmark

Lesson Posted on 04/08/2020 IT Courses/Programming Languages/Python IT Courses/Programming Languages/Python/Python Classes IT Courses/Programming Languages/Python/Python Beginner +4 IT Courses/Programming Languages/Python/Python Advanced IT Courses/Programming Languages/Python/Python 2.7 IT Courses/Programming Languages/Python/Python 3.4 IT Courses/Java less

Write your first Python program in 10 minutes

Debrati Sadhu

I teach Pre-primary (Nursery, KG) and Primary (I - V) students. I have Industry Experience trainer...

1. Download python from python official site search "python download" in google 2. Install in your machine 3. verify using : "python --version" command 4. Write first program using notepad create a file named test.py and write the first line "print("Hello World");" Save it. 5. Run : python test.py Code... read more

1. Download python from python official site search "python download" in google

2. Install in your machine

3. verify using : "python --version" command

4. Write first program using notepad 

create a file named test.py and write the first line "print("Hello World");"

Save it.

5. Run : python test.py

Code Examples:

# Example
print('Hello');
 
# How to take user input in python
name = input('whats your name ? ')
print('hi '+ name)

 

read less
Comments
Dislike Bookmark

Lesson Posted on 19/05/2020 Tuition/BTech Tuition IT Courses/Java

Overloading in JAVA

Swati S.

Can teach you programming in C,DataStructures,Algorithms ,Computer Networks,Operating System,Database...

When a class contains more than one method with the same method name but different argument types, then it is called Overloading. Methods are said to be Overloaded methods. Also, know as Compile time binding or Early binding. The compiler takes care of overloaded methods and decides according to the... read more

When a class contains more than one method with the same method name but different argument types, then it is called Overloading.

Methods are said to be Overloaded methods.

Also, know as Compile time binding or Early binding.

The compiler takes care of overloaded methods and decides according to the signature which way is to be invoked.

Eg:    class Display

         {

        public void show( int b) //1

         {System.out.println(b);}

        public void  show(String s) //2

        {System.out.println(s);}

          public static void main(String args[ ])

          {

        Display d = new Display();

        d.show(2);//1 method invoked

        d.show("Swati");//2 method invoked

       d.show( 10.5f)/*in 3 invocation

    1  method gets invoked though show(float ) not present*/

}

}

1 &2  are overloaded methods in class Display.During a method call compiler first searches for exactly matched method calls in class.3 invocation  compiler actually searches for show(float f)  but it is not found.So it again searches for the method having argument that can be promoted into float and encounters 1 method.As we all know int can be converted into float.This is called Automatic argument promotion.

 

 

Output of program

Swati

10.5

read less
Comments
Dislike Bookmark

Looking for Java Training Classes

Find best Java Training Classes in your locality on UrbanPro.

FIND NOW

Answered on 08/10/2020 IT Courses/Java IT Courses/Java Script Training Tuition/BCA Tuition/Java Programming +1 IT Courses/Java/Core Java less

How is the internal structure of Nodejs?

Palamala L Sai Nikitha

It all depends on how good you are at in js, and could be capabale of understandings few inbuilt libraries.
Answers 1 Comments
Dislike Bookmark

Answered on 07 Jan IT Courses/Java IT Courses/Java Script Training Tuition/BCA Tuition/Java Programming +1 IT Courses/Java/Core Java less

What are the best Angular.js development companies in India?

Jyotsna Zutshi

FAITH IS THE ABILITY TO SEE THE INVISIBLE

Mobiweb Technologies
Answers 1 Comments
Dislike Bookmark

Answered on 10/03/2020 IT Courses/Programming Languages/Python IT Courses/Java IT Courses/Programming Languages/PHP

Charlie

Both the development programs come with their strong suits. While Java allows you to enjoy the cross-platform support, Python helps you execute on at least ten different operating systems. It would help if you determined as to what the end goal os before deciding on which program you are going to use.... read more

Both the development programs come with their strong suits. While Java allows you to enjoy the cross-platform support, Python helps you execute on at least ten different operating systems. It would help if you determined as to what the end goal os before deciding on which program you are going to use. Java for a beginner is not suitable, whereas, Python is ore forgiving as you have the liberty to take shortcuts. Additionally, many users find Python more easier to read and understand than Java. At the same time, Java code can be written once and executed from anywhere.

 

So choose wisely

read less
Answers 5 Comments
Dislike Bookmark

Answered on 28/03/2020 IT Courses/Java/Core Java IT Courses/SAP/SAP Technology Platform /SAP ABAP

Need Career Counselling - please let me know your comments Dear ALL, Myself Sanjay Manoj completed... read more

Need Career Counselling - please let me know your comments

 

Dear ALL,

Myself Sanjay Manoj completed Post graduation M.Sc Computer Science- May 2009 -7.5 CGPa

Jan 2009 - May 2009 ( ERP Support - Textile Industry ) Domain : Java Platform + SQL

From May 2009 to Mar 2010 ( worked in marketing)

April 2010 - May 2011 ( ERP + Production Follow up - Textile Industry ) - Java + Sql ( Textile company )

August 2011 - Feb 2014 ( Software Support - Shipping & Logistics industry) - .Net + Sql

Feb 2014 - dec 2016 ( Supply chain - ERP Support - Textile Apparel industry) - sybase + .Net + Sql

Jan 2017 - till now ( ERP Support + Production Follow up - Textile industry) - Java + Sql ( Textile company)

Now I dont know where should i go..

Technically i have zero knowledge.. but I want to go to Pure IT - Technical jobs..

Can i start to learn SAP ABAB - or any DB

I want to go into development for long race. ( I know IT is not a Long Race)

But Somehow I am struggling to get know my career path.. I Presume companies couldnt consider support persons whose age crossed 30..

What Should I do..

now I start to learn Core Java for time being.

After that SAP ABAP?

is this the good way? ...will my experience counts?

regards
Sanjay

 

read less

Rohinidevi

Six years experience in mathematics subject for b.Tech ,intermediate,degree and statistics students

Hi Sanjay, You can learn abap but from working consultant only can learn not any private places. And you have to learn other advanced abap concepts also etc abap with odata, idoc , workflow, etc.
Answers 1 Comments 1
Dislike Bookmark

Looking for Java Training Classes

Find best Java Training Classes in your locality on UrbanPro.

FIND NOW

About UrbanPro

UrbanPro.com helps you to connect with the best Java Training Classes in India. Post Your Requirement today and get connected.

Overview

Questions 771

Lessons 116

Total Shares  

+ Follow 112,208 Followers

Related Topics

Top Contributors

Connect with Expert Tutors & Institutes for Java

x

Ask a Question

Please enter your Question

Please select a Tag

X

Looking for Java Training Classes?

Find best tutors for Java Training Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for Java Training Classes?

Find best Java Training Classes in your locality on UrbanPro

Post your learning requirement

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more